mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Avoid using subtarget features when adding X86 specific passes to
the pass pipeline. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209382 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -150,6 +150,10 @@ FunctionPass *llvm::createX86FixupLEAs() {
|
||||
|
||||
bool FixupLEAPass::runOnMachineFunction(MachineFunction &Func) {
|
||||
TM = &Func.getTarget();
|
||||
const X86Subtarget &ST = TM->getSubtarget<X86Subtarget>();
|
||||
if (!ST.LEAusesAG() && !ST.slowLEA())
|
||||
return false;
|
||||
|
||||
TII = static_cast<const X86InstrInfo*>(TM->getInstrInfo());
|
||||
|
||||
DEBUG(dbgs() << "Start X86FixupLEAs\n";);
|
||||
|
Reference in New Issue
Block a user