[llvm-commits] CVS: llvm/lib/CodeGen/BranchFolding.cpp
Dale Johannesen
dalej at apple.com
Thu May 17 18:29:18 PDT 2007
Changes in directory llvm/lib/CodeGen:
BranchFolding.cpp updated: 1.53 -> 1.54
---
Log message:
Remove some unneeded branches. (spotted by Evan, thanks)
---
Diffs of the changes: (+1 -0)
BranchFolding.cpp | 1 +
1 files changed, 1 insertion(+)
Index: llvm/lib/CodeGen/BranchFolding.cpp
diff -u llvm/lib/CodeGen/BranchFolding.cpp:1.53 llvm/lib/CodeGen/BranchFolding.cpp:1.54
--- llvm/lib/CodeGen/BranchFolding.cpp:1.53 Tue May 15 16:19:17 2007
+++ llvm/lib/CodeGen/BranchFolding.cpp Thu May 17 20:28:58 2007
@@ -595,6 +595,7 @@
// 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);
More information about the llvm-commits
mailing list