[llvm-commits] [llvm] r156167 - /llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp
Chandler Carruth
chandlerc at gmail.com
Fri May 4 04:17:06 PDT 2012
Author: chandlerc
Date: Fri May 4 06:17:06 2012
New Revision: 156167
URL: http://llvm.org/viewvc/llvm-project?rev=156167&view=rev
Log:
Rather than trying to gracefully handle input sequences with repeated
blocks, assert that this doesn't happen. We don't want to bother trying
to support this call pattern as it isn't necessary.
Modified:
llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp
Modified: llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp?rev=156167&r1=156166&r2=156167&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp Fri May 4 06:17:06 2012
@@ -74,7 +74,7 @@
for (ArrayRef<BasicBlock *>::iterator I = BBs.begin(), E = BBs.end();
I != E; ++I) {
if (!Result.insert(*I))
- continue;
+ llvm_unreachable("Repeated basic blocks in extraction input");
if (!isBlockValidForExtraction(**I)) {
Result.clear();
More information about the llvm-commits
mailing list