[llvm] r255752 - Minor change to TailDuplication.cpp to turn on normalization when removing successor
Cong Hou via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 15 22:03:30 PST 2015
Author: conghou
Date: Wed Dec 16 00:03:30 2015
New Revision: 255752
URL: http://llvm.org/viewvc/llvm-project?rev=255752&view=rev
Log:
Minor change to TailDuplication.cpp to turn on normalization when removing successor
Modified:
llvm/trunk/lib/CodeGen/TailDuplication.cpp
Modified: llvm/trunk/lib/CodeGen/TailDuplication.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/TailDuplication.cpp?rev=255752&r1=255751&r2=255752&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/TailDuplication.cpp (original)
+++ llvm/trunk/lib/CodeGen/TailDuplication.cpp Wed Dec 16 00:03:30 2015
@@ -748,7 +748,7 @@ TailDuplicatePass::duplicateSimpleBB(Mac
if (!PredBB->isSuccessor(NewTarget))
PredBB->replaceSuccessor(TailBB, NewTarget);
else {
- PredBB->removeSuccessor(TailBB, 0);
+ PredBB->removeSuccessor(TailBB, true);
assert(PredBB->succ_size() <= 1);
}
More information about the llvm-commits
mailing list