[llvm] r297507 - Sink accessing TII to fix release Werror builds.
Eric Christopher via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 10 13:20:17 PST 2017
Author: echristo
Date: Fri Mar 10 15:20:17 2017
New Revision: 297507
URL: http://llvm.org/viewvc/llvm-project?rev=297507&view=rev
Log:
Sink accessing TII to fix release Werror builds.
Modified:
llvm/trunk/lib/Target/X86/X86MacroFusion.cpp
Modified: llvm/trunk/lib/Target/X86/X86MacroFusion.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86MacroFusion.cpp?rev=297507&r1=297506&r2=297507&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86MacroFusion.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86MacroFusion.cpp Fri Mar 10 15:20:17 2017
@@ -214,7 +214,6 @@ public:
void X86MacroFusion::apply(ScheduleDAGInstrs *DAGInstrs) {
ScheduleDAGMI *DAG = static_cast<ScheduleDAGMI*>(DAGInstrs);
- const TargetInstrInfo &TII = *DAG->TII;
const X86Subtarget &ST = DAG->MF.getSubtarget<X86Subtarget>();
// For now, assume targets can only fuse with the branch.
@@ -252,10 +251,9 @@ void X86MacroFusion::apply(ScheduleDAGIn
++NumFused;
DEBUG(dbgs() << DAG->MF.getName() << "(): Macro fuse ";
SU.print(dbgs(), DAG);
- dbgs() << " - ExitSU" << " / " <<
- TII.getName(Pred.getOpcode()) << " - " <<
- TII.getName(Branch->getOpcode()) << '\n';
-);
+ dbgs() << " - ExitSU"
+ << " / " << DAG->TII->getName(Pred.getOpcode()) << " - "
+ << DAG->TII->getName(Branch->getOpcode()) << '\n';);
break;
}
More information about the llvm-commits
mailing list