[llvm] r247865 - Use the cached TargetInstrInfo instead of looking it up again.

Eric Christopher via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 16 16:38:17 PDT 2015


Author: echristo
Date: Wed Sep 16 18:38:16 2015
New Revision: 247865

URL: http://llvm.org/viewvc/llvm-project?rev=247865&view=rev
Log:
Use the cached TargetInstrInfo instead of looking it up again.

Modified:
    llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp

Modified: llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp?rev=247865&r1=247864&r2=247865&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp Wed Sep 16 18:38:16 2015
@@ -810,8 +810,7 @@ MachineBasicBlock::SplitCriticalEdge(Mac
   NMBB->addSuccessor(Succ);
   if (!NMBB->isLayoutSuccessor(Succ)) {
     Cond.clear();
-    MF->getSubtarget().getInstrInfo()->InsertBranch(*NMBB, Succ, nullptr, Cond,
-                                                    dl);
+    TII->InsertBranch(*NMBB, Succ, nullptr, Cond, dl);
 
     if (Indexes) {
       for (instr_iterator I = NMBB->instr_begin(), E = NMBB->instr_end();




More information about the llvm-commits mailing list