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

Chris Lattner lattner at cs.uiuc.edu
Fri Feb 20 00:02:01 PST 2004


Changes in directory llvm/tools/bugpoint:

CodeGeneratorBug.cpp updated: 1.35 -> 1.36

---
Log message:

Wild and passionate uncontrolled goose chases are amusing to watch, but not
very helpful.  Let bugpoint favor being helpful instead of determined.


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

Index: llvm/tools/bugpoint/CodeGeneratorBug.cpp
diff -u llvm/tools/bugpoint/CodeGeneratorBug.cpp:1.35 llvm/tools/bugpoint/CodeGeneratorBug.cpp:1.36
--- llvm/tools/bugpoint/CodeGeneratorBug.cpp:1.35	Tue Feb 17 00:40:51 2004
+++ llvm/tools/bugpoint/CodeGeneratorBug.cpp	Thu Feb 19 23:58:58 2004
@@ -348,8 +348,15 @@
 
 
 bool BugDriver::debugCodeGenerator() {
+  if ((void*)cbe == (void*)Interpreter) {
+    std::cout << "*** The C backend cannot match the reference diff, but it is "
+              << "used as the 'known good'\n     code generator, so I can't deb"
+              << "ug it.  Perhaps you have a front-end problem?\n";
+    return true;
+  }
+
   // See if we can pin down which functions are being miscompiled...
-  //First, build a list of all of the non-external functions in the program.
+  // First, build a list of all of the non-external functions in the program.
   std::vector<Function*> MisCodegenFunctions;
   for (Module::iterator I = Program->begin(), E = Program->end(); I != E; ++I)
     if (!I->isExternal())





More information about the llvm-commits mailing list