Don't print fast-isel debug messages by default. Thanks Chris!

llvm-svn: 56614
This commit is contained in:
Dan Gohman 2008-09-25 17:21:42 +00:00
parent dd920bf3f0
commit 6975c36c43
1 changed files with 6 additions and 3 deletions

View File

@ -729,7 +729,8 @@ void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn, MachineFunction &MF,
for (Function::arg_iterator I = Fn.arg_begin(), E = Fn.arg_end();
I != E; ++I, ++j)
if (Fn.paramHasAttr(j, ParamAttr::ByVal)) {
cerr << "FastISel skips entry block due to byval argument\n";
if (EnableFastISelVerbose || EnableFastISelAbort)
cerr << "FastISel skips entry block due to byval argument\n";
SuppressFastISel = true;
break;
}
@ -776,8 +777,10 @@ void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn, MachineFunction &MF,
// Then handle certain instructions as single-LLVM-Instruction blocks.
if (isa<CallInst>(BI)) {
cerr << "FastISel missed call: ";
BI->dump();
if (EnableFastISelVerbose || EnableFastISelAbort) {
cerr << "FastISel missed call: ";
BI->dump();
}
if (BI->getType() != Type::VoidTy) {
unsigned &R = FuncInfo->ValueMap[BI];