diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Target/X86/X86FixupLEAs.cpp')
-rw-r--r-- | contrib/llvm-project/llvm/lib/Target/X86/X86FixupLEAs.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/llvm-project/llvm/lib/Target/X86/X86FixupLEAs.cpp b/contrib/llvm-project/llvm/lib/Target/X86/X86FixupLEAs.cpp index 4730b936ec1f..b01145809ac6 100644 --- a/contrib/llvm-project/llvm/lib/Target/X86/X86FixupLEAs.cpp +++ b/contrib/llvm-project/llvm/lib/Target/X86/X86FixupLEAs.cpp @@ -229,7 +229,7 @@ bool FixupLEAPass::runOnMachineFunction(MachineFunction &MF) { const X86Subtarget &ST = MF.getSubtarget<X86Subtarget>(); bool IsSlowLEA = ST.slowLEA(); bool IsSlow3OpsLEA = ST.slow3OpsLEA(); - bool LEAUsesAG = ST.LEAusesAG(); + bool LEAUsesAG = ST.leaUsesAG(); bool OptIncDec = !ST.slowIncDec() || MF.getFunction().hasOptSize(); bool UseLEAForSP = ST.useLeaForSP(); @@ -546,7 +546,6 @@ bool FixupLEAPass::optLEAALU(MachineBasicBlock::iterator &I, if (KilledIndex) KilledIndex->setIsKill(false); - MBB.getParent()->substituteDebugValuesForInst(*AluI, *NewMI1, 1); MBB.getParent()->substituteDebugValuesForInst(*AluI, *NewMI2, 1); MBB.erase(I); MBB.erase(AluI); |