mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-20 04:11:13 +00:00
Remove the query for TargetMachine and TargetInstrInfo since we're
already inside TargetInstrInfo. llvm-svn: 213806
This commit is contained in:
parent
eaf4b8c44f
commit
052c4b4f44
@ -562,8 +562,6 @@ isReallyTriviallyReMaterializableGeneric(const MachineInstr *MI,
|
||||
AliasAnalysis *AA) const {
|
||||
const MachineFunction &MF = *MI->getParent()->getParent();
|
||||
const MachineRegisterInfo &MRI = MF.getRegInfo();
|
||||
const TargetMachine &TM = MF.getTarget();
|
||||
const TargetInstrInfo &TII = *TM.getInstrInfo();
|
||||
|
||||
// Remat clients assume operand 0 is the defined register.
|
||||
if (!MI->getNumOperands() || !MI->getOperand(0).isReg())
|
||||
@ -582,7 +580,7 @@ isReallyTriviallyReMaterializableGeneric(const MachineInstr *MI,
|
||||
// redundant with subsequent checks, but it's target-independent,
|
||||
// simple, and a common case.
|
||||
int FrameIdx = 0;
|
||||
if (TII.isLoadFromStackSlot(MI, FrameIdx) &&
|
||||
if (isLoadFromStackSlot(MI, FrameIdx) &&
|
||||
MF.getFrameInfo()->isImmutableObjectIndex(FrameIdx))
|
||||
return true;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user