summaryrefslogtreecommitdiff
path: root/src/test/java/com/seaofnodes/simple/codegen
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2026-08-10 11:11:18 -0700
committerCliff Click <cliffc@acm.org>2026-11-16 16:23:52 -0800
commit0b263f550d5e54d050f58f6b315b092944c9eff9 (patch)
treeaff564cf11711c41a6f94f17ffbc480e1b228da1 /src/test/java/com/seaofnodes/simple/codegen
parent790268f4a1f6122376c34059f1633c1017436363 (diff)
downloadSimple-linear-chapter32.tar.gz
Simple-linear-chapter32.zip
Chapter 32: Compiler Internal Speedupslinear-chapter32linear
Co-authored-by: Hsiang-Ying Fu <66062782+fuhsnn@users.noreply.github.com> Co-authored-by: fuhsnn <66062782+fuhsnn@users.noreply.github.com> Co-authored-by: Symious <14933944+symious@users.noreply.github.com> Co-authored-by: Jun Kawasaki <jun784@gmail.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'src/test/java/com/seaofnodes/simple/codegen')
-rw-r--r--src/test/java/com/seaofnodes/simple/codegen/RegAllocTestSupport.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/java/com/seaofnodes/simple/codegen/RegAllocTestSupport.java b/src/test/java/com/seaofnodes/simple/codegen/RegAllocTestSupport.java
index edb2519c..ae935da0 100644
--- a/src/test/java/com/seaofnodes/simple/codegen/RegAllocTestSupport.java
+++ b/src/test/java/com/seaofnodes/simple/codegen/RegAllocTestSupport.java
@@ -85,7 +85,7 @@ public class RegAllocTestSupport {
new Op(null,A,null,false,code._start,def);
RegAlloc alloc = new RegAlloc(code);
assertTrue(BuildLRG.run(0,alloc));
- assertFalse("A live value cannot survive a register kill",IFG.build(0,alloc));
+ assertFalse("A live value cannot survive a register kill",new IFG().build(0,alloc));
}
public static void nullUseMask() {
@@ -95,7 +95,7 @@ public class RegAllocTestSupport {
new Op(null,null,null,false,code._start,def); // Scheduling dependency only.
RegAlloc alloc = new RegAlloc(code);
assertTrue(BuildLRG.run(0,alloc));
- assertTrue(IFG.build(0,alloc));
+ assertTrue(new IFG().build(0,alloc));
}
public static void independentFunctions() {
@@ -262,7 +262,7 @@ public class RegAllocTestSupport {
assertTrue(BuildLRG.run(0,alloc));
assertNull(alloc.lrg(top));
assertSame(alloc.lrg(def),alloc.lrg(phi));
- assertTrue(IFG.build(0,alloc));
+ assertTrue(new IFG().build(0,alloc));
alloc.insertBefore(phi,slot,"test",(byte)0,alloc.lrg(phi));
assertSame(top,phi.in(slot));
}