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

Reid Spencer reid at x10sys.com
Sat Nov 11 11:05:17 PST 2006



Changes in directory llvm/tools/bugpoint:

Miscompilation.cpp updated: 1.78 -> 1.79
---
Log message:

Add a -disable-loop-extraction option to bugpoint.


---
Diffs of the changes:  (+9 -2)

 Miscompilation.cpp |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)


Index: llvm/tools/bugpoint/Miscompilation.cpp
diff -u llvm/tools/bugpoint/Miscompilation.cpp:1.78 llvm/tools/bugpoint/Miscompilation.cpp:1.79
--- llvm/tools/bugpoint/Miscompilation.cpp:1.78	Thu Nov  2 14:25:50 2006
+++ llvm/tools/bugpoint/Miscompilation.cpp	Sat Nov 11 13:05:02 2006
@@ -33,6 +33,11 @@
 }
 
 namespace {
+  static llvm::cl::opt<bool> 
+    DisableLoopExtraction("disable-loop-extraction", 
+        cl::desc("Don't extract loops when searching for miscompilations"),
+        cl::init(false));
+
   class ReduceMiscompilingPasses : public ListReducer<const PassInfo*> {
     BugDriver &BD;
   public:
@@ -512,8 +517,10 @@
 
   // See if we can rip any loops out of the miscompiled functions and still
   // trigger the problem.
-  if (!BugpointIsInterrupted && 
-      ExtractLoops(BD, TestFn, MiscompiledFunctions)) {
+
+  if (!DisableLoopExtraction)
+    if (!BugpointIsInterrupted && 
+        ExtractLoops(BD, TestFn, MiscompiledFunctions)) {
     // Okay, we extracted some loops and the problem still appears.  See if we
     // can eliminate some of the created functions from being candidates.
 






More information about the llvm-commits mailing list