diff options
author | Craig Topper <craig.topper@intel.com> | 2017-11-24 19:32:34 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2017-11-24 19:32:34 +0000 |
commit | 8375bec71ef0dad418dc01706d490300f35b1e74 (patch) | |
tree | e6ee84b67cd77e4bbb398bc53695bc415ecc4c5d /llvm/lib/Support/APInt.cpp | |
parent | 960c4e3bb411d2778accd54f42859f8d072998c5 (diff) | |
download | bcm5719-llvm-8375bec71ef0dad418dc01706d490300f35b1e74.tar.gz bcm5719-llvm-8375bec71ef0dad418dc01706d490300f35b1e74.zip |
Revert 318963 "[APInt] Don't print debug messages from the APInt knuth division algorithm by default"
I seem to have botched the logic when switching to push_macro
llvm-svn: 318964
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
-rw-r--r-- | llvm/lib/Support/APInt.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp index 3d915fc2c70..c558ddd8216 100644 --- a/llvm/lib/Support/APInt.cpp +++ b/llvm/lib/Support/APInt.cpp @@ -1252,14 +1252,6 @@ static void KnuthDiv(uint32_t *u, uint32_t *v, uint32_t *q, uint32_t* r, // b denotes the base of the number system. In our case b is 2^32. const uint64_t b = uint64_t(1) << 32; -// The DEBUG macros here tend to be spam in the debug output if you're not -// debugging this code. Disable them unless KNUTH_DEBUG is defined. -#pragma push_macro("DEBUG") -#ifndef KNUTH_DEBUG -#undef DEBUG -#define DEBUG(X) do {} while (true) -#endif - DEBUG(dbgs() << "KnuthDiv: m=" << m << " n=" << n << '\n'); DEBUG(dbgs() << "KnuthDiv: original:"); DEBUG(for (int i = m+n; i >=0; i--) dbgs() << " " << u[i]); @@ -1399,8 +1391,6 @@ static void KnuthDiv(uint32_t *u, uint32_t *v, uint32_t *q, uint32_t* r, DEBUG(dbgs() << '\n'); } DEBUG(dbgs() << '\n'); - -#pragma pop_macro("DEBUG") } void APInt::divide(const WordType *LHS, unsigned lhsWords, const WordType *RHS, |