MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / kills

Method kills

chapter20/src/main/java/com/seaofnodes/simple/codegen/IFG.java:199–218  ·  view source on GitHub ↗
( RegAlloc alloc, MachNode m )

Source from the content-addressed store, hash-verified

197 if( killMask==null ) return;
198 // Kill registers with all live
199 for( LRG tlrg : TMP.keySet() ) {
200 assert tlrg.leader();
201 // Always, tlrg cannot use kills
202 if( tlrg._mask.overlap(killMask) ) {
203 if( !tlrg.sub(killMask) ) alloc.fail(tlrg);
204 }
205 }
206 }
207
208 // Check for self-conflict live ranges. These must split, and only happens
209 // during the first round a particular LRG splits.
210 private static void selfConflict(RegAlloc alloc, Node n, LRG lrg) {
211 selfConflict(alloc,n,lrg,TMP.get(lrg));
212 }
213 private static void selfConflict(RegAlloc alloc, Node n, LRG lrg, Node prior) {
214 if( prior!=null && prior != n ) {
215 lrg.selfConflict(prior);
216 lrg.selfConflict(n);
217 alloc.fail(lrg); // 2 unrelated values live at once same live range; self-conflict
218 }
219 }
220
221 // Merge TMP into bb's live-out set; if changes put bb on WORK

Callers 2

do_blockMethod · 0.95
do_nodeMethod · 0.95

Calls 7

killmapMethod · 0.65
isCloneMethod · 0.65
leaderMethod · 0.45
overlapMethod · 0.45
failMethod · 0.45
lrgMethod · 0.45
subMethod · 0.45

Tested by

no test coverage detected