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:
6a7da77
)
Minor change to TailDuplication.cpp to turn on normalization when removing successor
author
Cong Hou
<congh@google.com>
Wed, 16 Dec 2015 06:03:30 +0000
(06:03 +0000)
committer
Cong Hou
<congh@google.com>
Wed, 16 Dec 2015 06:03:30 +0000
(06:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255752
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/TailDuplication.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/TailDuplication.cpp
b/lib/CodeGen/TailDuplication.cpp
index 132c069d69efefb751e350044c9cbdc678e414e5..d2fbf533a7872561cdfebf01f3fa3387c466a794 100644
(file)
--- a/
lib/CodeGen/TailDuplication.cpp
+++ b/
lib/CodeGen/TailDuplication.cpp
@@
-748,7
+748,7
@@
TailDuplicatePass::duplicateSimpleBB(MachineBasicBlock *TailBB,
if (!PredBB->isSuccessor(NewTarget))
PredBB->replaceSuccessor(TailBB, NewTarget);
else {
- PredBB->removeSuccessor(TailBB,
0
);
+ PredBB->removeSuccessor(TailBB,
true
);
assert(PredBB->succ_size() <= 1);
}