[llvm] r291685 - GlobalISel: only print debug info with -debug. NFC.
Tim Northover via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 11 09:33:38 PST 2017
Author: tnorthover
Date: Wed Jan 11 11:33:37 2017
New Revision: 291685
URL: http://llvm.org/viewvc/llvm-project?rev=291685&view=rev
Log:
GlobalISel: only print debug info with -debug. NFC.
Turns out DEBUG(...) has uses even inside NDEBUG checks.
Modified:
llvm/trunk/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
Modified: llvm/trunk/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp?rev=291685&r1=291684&r2=291685&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp (original)
+++ llvm/trunk/lib/CodeGen/GlobalISel/RegisterBankInfo.cpp Wed Jan 11 11:33:37 2017
@@ -74,7 +74,7 @@ bool RegisterBankInfo::verify(const Targ
const RegisterBank &RegBank = getRegBank(Idx);
assert(Idx == RegBank.getID() &&
"ID does not match the index in the array");
- dbgs() << "Verify " << RegBank << '\n';
+ DEBUG(dbgs() << "Verify " << RegBank << '\n');
assert(RegBank.verify(TRI) && "RegBank is invalid");
}
#endif // NDEBUG
More information about the llvm-commits
mailing list