[llvm-commits] CVS: llvm/tools/bugpoint/ExtractFunction.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Mar 17 11:38:02 PST 2004


Changes in directory llvm/tools/bugpoint:

ExtractFunction.cpp updated: 1.30 -> 1.31

---
Log message:

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.


---
Diffs of the changes:  (+1 -1)

Index: llvm/tools/bugpoint/ExtractFunction.cpp
diff -u llvm/tools/bugpoint/ExtractFunction.cpp:1.30 llvm/tools/bugpoint/ExtractFunction.cpp:1.31
--- llvm/tools/bugpoint/ExtractFunction.cpp:1.30	Sun Mar 14 16:08:00 2004
+++ llvm/tools/bugpoint/ExtractFunction.cpp	Wed Mar 17 11:37:18 2004
@@ -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;
   }





More information about the llvm-commits mailing list