| 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 |