From: Eric Christopher Date: Wed, 16 Sep 2015 23:38:16 +0000 (+0000) Subject: Use the cached TargetInstrInfo instead of looking it up again. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4988c1d8c6be046424eb8c6e4644d882c0c4d1f8;p=oota-llvm.git Use the cached TargetInstrInfo instead of looking it up again. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247865 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/MachineBasicBlock.cpp b/lib/CodeGen/MachineBasicBlock.cpp index 025c0af0e43..a968ab95146 100644 --- a/lib/CodeGen/MachineBasicBlock.cpp +++ b/lib/CodeGen/MachineBasicBlock.cpp @@ -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();