mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
If-converter models predicated defs as read + write. The read should be marked as 'undef' since it may not already be live. This appeases -verify-machineinstrs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157662 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ef09705ee5
commit
3d4166dff0
@ -993,7 +993,8 @@ static void UpdatePredRedefs(MachineInstr *MI, SmallSet<unsigned,4> &Redefs,
|
||||
if (AddImpUse)
|
||||
// Treat predicated update as read + write.
|
||||
MI->addOperand(MachineOperand::CreateReg(Reg, false/*IsDef*/,
|
||||
true/*IsImp*/,false/*IsKill*/));
|
||||
true/*IsImp*/,false/*IsKill*/,
|
||||
false/*IsDead*/,true/*IsUndef*/));
|
||||
} else {
|
||||
Redefs.insert(Reg);
|
||||
for (const uint16_t *SR = TRI->getSubRegisters(Reg); *SR; ++SR)
|
||||
|
Loading…
x
Reference in New Issue
Block a user