diff options
| author | Cliff Click <cliffc@acm.org> | 2026-11-15 22:45:53 -0800 |
|---|---|---|
| committer | Cliff Click <cliffc@acm.org> | 2026-11-15 22:45:53 -0800 |
| commit | ec270802f05b93eccffa2e0fbfb9bd5dd63c9cb2 (patch) | |
| tree | 911aa442589061f12de22982eee3505ed5716af0 /chapter32/src/test/java | |
| parent | b8bcd9c0e826c7cb0b45d1ae5a52a325d22fd048 (diff) | |
| download | Simple-ec270802f05b93eccffa2e0fbfb9bd5dd63c9cb2.tar.gz Simple-ec270802f05b93eccffa2e0fbfb9bd5dd63c9cb2.zip | |
More caching
and during RegAlloc, hang on to only a single fcn's BBs at a time
Diffstat (limited to 'chapter32/src/test/java')
| -rw-r--r-- | chapter32/src/test/java/com/seaofnodes/simple/codegen/RegAllocTestSupport.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chapter32/src/test/java/com/seaofnodes/simple/codegen/RegAllocTestSupport.java b/chapter32/src/test/java/com/seaofnodes/simple/codegen/RegAllocTestSupport.java index edb2519c..ae935da0 100644 --- a/chapter32/src/test/java/com/seaofnodes/simple/codegen/RegAllocTestSupport.java +++ b/chapter32/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)); } |
