Fix an inverted condition that causes us to think that loop extraction
accomplished something when it really did not. This does not fix the bigger problem tho.
llvm-svn: 12469
diff --git a/llvm/tools/bugpoint/ExtractFunction.cpp b/llvm/tools/bugpoint/ExtractFunction.cpp
index e8fe499..5119c80 100644
--- a/llvm/tools/bugpoint/ExtractFunction.cpp
+++ b/llvm/tools/bugpoint/ExtractFunction.cpp
@@ -141,7 +141,7 @@
// Check to see if we created any new functions. If not, no loops were
// extracted and we should return null.
- if (M->size() != NewM->size()) {
+ if (M->size() == NewM->size()) {
delete NewM;
return 0;
}