projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
973f7aa
)
Use the cached TargetInstrInfo instead of looking it up again.
author
Eric Christopher
<echristo@gmail.com>
Wed, 16 Sep 2015 23:38:16 +0000
(23:38 +0000)
committer
Eric 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
patch
|
blob
|
history
diff --git
a/lib/CodeGen/MachineBasicBlock.cpp
b/lib/CodeGen/MachineBasicBlock.cpp
index 025c0af0e437ad93c8a0303ca762efca82b63484..a968ab9514611b417f247fc3cf4ce0f2fbba68a5 100644
(file)
--- 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();