summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-09-16 23:38:16 +0000
committerEric Christopher <echristo@gmail.com>2015-09-16 23:38:16 +0000
commitc7b155f67044e8bf5163558446c69c99a6185578 (patch)
tree5d01cdc8ce0568933b8e87df15cc749213b74eba /llvm/lib/CodeGen/MachineBasicBlock.cpp
parenta4e5d3cf8ecba1d2fa03ec590424a4a5e535e5d1 (diff)
downloadbcm5719-llvm-c7b155f67044e8bf5163558446c69c99a6185578.tar.gz
bcm5719-llvm-c7b155f67044e8bf5163558446c69c99a6185578.zip
Use the cached TargetInstrInfo instead of looking it up again.
llvm-svn: 247865
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBasicBlock.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp
index 025c0af0e43..a968ab95146 100644
--- a/llvm/lib/CodeGen/MachineBasicBlock.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud