File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 26
26
#include " llvm/ADT/DenseMap.h"
27
27
#include " llvm/ADT/SmallVector.h"
28
28
#include " llvm/ADT/StringRef.h"
29
- #include " llvm/CodeGen/LivePhysRegs .h"
29
+ #include " llvm/CodeGen/LiveRegUnits .h"
30
30
#include " llvm/CodeGen/MachineBasicBlock.h"
31
31
#include " llvm/CodeGen/MachineFunction.h"
32
32
#include " llvm/CodeGen/MachineFunctionPass.h"
@@ -346,11 +346,11 @@ bool HexagonGenMux::genMuxInBlock(MachineBasicBlock &B) {
346
346
347
347
// Fix up kill flags.
348
348
349
- LivePhysRegs LPR (*HRI);
349
+ LiveRegUnits LPR (*HRI);
350
350
LPR.addLiveOuts (B);
351
351
auto IsLive = [&LPR, this ](unsigned Reg) -> bool {
352
352
for (MCPhysReg S : HRI->subregs_inclusive (Reg))
353
- if (LPR.contains (S))
353
+ if (! LPR.available (S))
354
354
return true ;
355
355
return false ;
356
356
};
@@ -365,8 +365,7 @@ bool HexagonGenMux::genMuxInBlock(MachineBasicBlock &B) {
365
365
if (!Op.isReg () || !Op.isUse ())
366
366
continue ;
367
367
assert (Op.getSubReg () == 0 && " Should have physical registers only" );
368
- bool Live = IsLive (Op.getReg ());
369
- Op.setIsKill (!Live);
368
+ Op.setIsKill (!LPR.available (Op.getReg ()));
370
369
}
371
370
LPR.stepBackward (I);
372
371
}
You can’t perform that action at this time.
0 commit comments