mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-17 00:50:58 +00:00
No need recognize load from a fixed argument slot as re-materializable. LiveIntervalAnalysis already handles it as a special case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47522 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e9fabd94ab
commit
b2a0abce1e
@ -760,18 +760,6 @@ bool X86InstrInfo::isReallyTriviallyReMaterializable(MachineInstr *MI) const {
|
||||
return isPICBase;
|
||||
}
|
||||
|
||||
// If this is a load from a fixed argument slot, we know the value is
|
||||
// invariant across the whole function, because we don't redefine argument
|
||||
// values.
|
||||
#if 0
|
||||
// FIXME: This is disabled due to a remat bug. rdar://5671644
|
||||
if (MI->getOperand(1).isFI()) {
|
||||
const MachineFrameInfo &MFI=*MI->getParent()->getParent()->getFrameInfo();
|
||||
int Idx = MI->getOperand(1).getIndex();
|
||||
return MFI.isFixedObjectIndex(Idx) && MFI.isImmutableObjectIndex(Idx);
|
||||
}
|
||||
#endif
|
||||
|
||||
return false;
|
||||
}
|
||||
// All other instructions marked M_REMATERIALIZABLE are always trivially
|
||||
|
Loading…
Reference in New Issue
Block a user