[llvm-commits] [llvm] r140196 - /llvm/trunk/lib/Transforms/Utils/BreakCriticalEdges.cpp
Bill Wendling
isanbard at gmail.com
Tue Sep 20 15:28:17 PDT 2011
Author: void
Date: Tue Sep 20 17:28:17 2011
New Revision: 140196
URL: http://llvm.org/viewvc/llvm-project?rev=140196&view=rev
Log:
Relax this condition.
Some passes require breaking critical edges before they're called. Don't
segfault because of that.
Modified:
llvm/trunk/lib/Transforms/Utils/BreakCriticalEdges.cpp
Modified: llvm/trunk/lib/Transforms/Utils/BreakCriticalEdges.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/BreakCriticalEdges.cpp?rev=140196&r1=140195&r2=140196&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/BreakCriticalEdges.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/BreakCriticalEdges.cpp Tue Sep 20 17:28:17 2011
@@ -178,8 +178,7 @@
// Splitting the critical edge to a landing pad block is non-trivial. Don't do
// it in this generic function.
- assert(!DestBB->isLandingPad() &&
- "Cannot split critical edge to a landing pad block!");
+ if (DestBB->isLandingPad()) return 0;
// Create a new basic block, linking it into the CFG.
BasicBlock *NewBB = BasicBlock::Create(TI->getContext(),
More information about the llvm-commits
mailing list