mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-31 09:32:11 +00:00
Add a FIXME.
TwoAddressInstructionPass should annotate instructions with <undef> flags when it lower REG_SEQUENCE instructions. LiveIntervals should not be in the business of modifying code (except for kill flags, perhaps). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141187 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
62c607b741
commit
b0e1bc7b99
@ -304,6 +304,10 @@ void LiveIntervals::handleVirtualRegisterDef(MachineBasicBlock *mbb,
|
||||
|
||||
// Make sure the first definition is not a partial redefinition. Add an
|
||||
// <imp-def> of the full register.
|
||||
// FIXME: LiveIntervals shouldn't modify the code like this. Whoever
|
||||
// created the machine instruction should annotate it with <undef> flags
|
||||
// as needed. Then we can simply assert here. The REG_SEQUENCE lowering
|
||||
// is the main suspect.
|
||||
if (MO.getSubReg()) {
|
||||
mi->addRegisterDefined(interval.reg);
|
||||
// Mark all defs of interval.reg on this instruction as reading <undef>.
|
||||
|
Loading…
Reference in New Issue
Block a user