mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Changed my mind. We now allow remat of instructions whose defs have subreg indices.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76100 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1157,11 +1157,6 @@ bool LiveIntervals::isReMaterializable(const LiveInterval &li,
|
||||
if (DisableReMat)
|
||||
return false;
|
||||
|
||||
// FIXME: For now, avoid remating instructions whose definition has a subreg
|
||||
// index. It's just incredibly difficult to get right.
|
||||
if (MI->findRegisterDefOperand(li.reg)->getSubReg())
|
||||
return false;
|
||||
|
||||
if (MI->getOpcode() == TargetInstrInfo::IMPLICIT_DEF)
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user