OSDN Git Service

Use the cached TargetInstrInfo instead of looking it up again.
authorEric Christopher <echristo@gmail.com>
Wed, 16 Sep 2015 23:38:16 +0000 (23:38 +0000)
committerEric Christopher <echristo@gmail.com>
Wed, 16 Sep 2015 23:38:16 +0000 (23:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247865 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineBasicBlock.cpp

index 025c0af..a968ab9 100644 (file)
@@ -810,8 +810,7 @@ MachineBasicBlock::SplitCriticalEdge(MachineBasicBlock *Succ, Pass *P) {
   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();