#include "llvm/Target/TargetMachine.h"
using namespace llvm;
+#ifndef NDEBUG
STATISTIC(NumFastIselSuccessIndependent, "Number of insts selected by "
"target-independent selector");
STATISTIC(NumFastIselSuccessTarget, "Number of insts selected by "
"target-specific selector");
STATISTIC(NumFastIselDead, "Number of dead insts removed on failure");
+#endif // NDEBUG
/// startNewBlock - Set the current block to which generated machine
/// instructions will be appended, and clear the local CSE map.
MachineInstr *Dead = &*I;
++I;
Dead->eraseFromParent();
- ++NumFastIselDead;
+ DEBUG(++NumFastIselDead);
}
recomputeInsertPt();
}
// First, try doing target-independent selection.
if (SelectOperator(I, I->getOpcode())) {
- ++NumFastIselSuccessIndependent;
+ DEBUG(++NumFastIselSuccessIndependent);
DL = DebugLoc();
return true;
}
// Next, try calling the target to attempt to handle the instruction.
SavedInsertPt = FuncInfo.InsertPt;
if (TargetSelectInstruction(I)) {
- ++NumFastIselSuccessTarget;
+ DEBUG(++NumFastIselSuccessTarget);
DL = DebugLoc();
return true;
}