aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-09-25 17:21:42 +0000
committerDan Gohman <gohman@apple.com>2008-09-25 17:21:42 +0000
commit77ca41e5c3f99ee8962b21a7d90bb251a594a65e (patch)
tree614413ceecd50d9e5b90d2dc8ada7d6283548d58
parent2c442eda747c5c4ec0533642754202e47a1be81c (diff)
downloadexternal_llvm-77ca41e5c3f99ee8962b21a7d90bb251a594a65e.zip
external_llvm-77ca41e5c3f99ee8962b21a7d90bb251a594a65e.tar.gz
external_llvm-77ca41e5c3f99ee8962b21a7d90bb251a594a65e.tar.bz2
Don't print fast-isel debug messages by default. Thanks Chris!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56614 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 3c8a657..a36a4a4 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -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];