[llvm] r278049 - InstCombine: Remove a redundant #ifdef NDEBUG. NFC

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 8 14:02:11 PDT 2016


Author: bogner
Date: Mon Aug  8 16:02:11 2016
New Revision: 278049

URL: http://llvm.org/viewvc/llvm-project?rev=278049&view=rev
Log:
InstCombine: Remove a redundant #ifdef NDEBUG. NFC

The DEBUG() macro already does this.

Modified:
    llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp

Modified: llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp?rev=278049&r1=278048&r2=278049&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstructionCombining.cpp Mon Aug  8 16:02:11 2016
@@ -2961,10 +2961,8 @@ bool InstCombiner::run() {
 
         eraseInstFromFunction(*I);
       } else {
-#ifndef NDEBUG
         DEBUG(dbgs() << "IC: Mod = " << OrigI << '\n'
                      << "    New = " << *I << '\n');
-#endif
 
         // If the instruction was modified, it's possible that it is now dead.
         // if so, remove it.




More information about the llvm-commits mailing list