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:
e5e7ce4
)
Remove some unneeded branches. (spotted by Evan, thanks)
author
Dale Johannesen
<dalej@apple.com>
Fri, 18 May 2007 01:28:58 +0000
(
01:28
+0000)
committer
Dale Johannesen
<dalej@apple.com>
Fri, 18 May 2007 01:28:58 +0000
(
01:28
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37198
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/BranchFolding.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/BranchFolding.cpp
b/lib/CodeGen/BranchFolding.cpp
index 7b4aaae482412445c725fd56daae6615a602af5a..d8ec3406921bb7fde087f157e39c5f6a26e37d5a 100644
(file)
--- a/
lib/CodeGen/BranchFolding.cpp
+++ b/
lib/CodeGen/BranchFolding.cpp
@@
-595,6
+595,7
@@
bool BranchFolder::TailMergeBlocks(MachineFunction &MF) {
// Reinsert an unconditional branch if needed.
// The 1 below can be either an original single predecessor, or a result
// of removing blocks in TryMergeBlocks.
+ PredBB = prior(I); // this may have been changed in TryMergeBlocks
if (MergePotentials.size()==1 &&
(MergePotentials.begin())->second != PredBB)
FixTail((MergePotentials.begin())->second, I, TII);