summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/CodeGeneratorBug.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-20 05:58:58 +0000
committerChris Lattner <sabre@nondot.org>2004-02-20 05:58:58 +0000
commitf44220efcf84b034b432271814ad9dde60907b79 (patch)
treeca6ce37dbb6eb7b63a366a54fcf8e8275fb543ac /llvm/tools/bugpoint/CodeGeneratorBug.cpp
parentf98cc27056a87e82a9e2a615a9919f0f0678227e (diff)
downloadbcm5719-llvm-f44220efcf84b034b432271814ad9dde60907b79.tar.gz
bcm5719-llvm-f44220efcf84b034b432271814ad9dde60907b79.zip
Wild and passionate uncontrolled goose chases are amusing to watch, but not
very helpful. Let bugpoint favor being helpful instead of determined. llvm-svn: 11652
Diffstat (limited to 'llvm/tools/bugpoint/CodeGeneratorBug.cpp')
-rw-r--r--llvm/tools/bugpoint/CodeGeneratorBug.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/tools/bugpoint/CodeGeneratorBug.cpp b/llvm/tools/bugpoint/CodeGeneratorBug.cpp
index 62b37526a39..c8bcd537cf5 100644
--- a/llvm/tools/bugpoint/CodeGeneratorBug.cpp
+++ b/llvm/tools/bugpoint/CodeGeneratorBug.cpp
@@ -348,8 +348,15 @@ static void DisambiguateGlobalSymbols(Module *M) {
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())
OpenPOWER on IntegriCloud