[Transforms] Fix a warning

This patch fixes:

  llvm/lib/Transforms/Scalar/ConstraintElimination.cpp:1112:13: error:
  unused function 'dumpUnpackedICmp' [-Werror,-Wunused-function]
This commit is contained in:
Kazu Hirata 2023-12-13 08:31:46 -08:00
parent f2464ca317
commit f0ac6f92a7

View File

@ -1109,6 +1109,7 @@ void State::addInfoFor(BasicBlock &BB) {
CmpI->getOperand(1)));
}
#ifndef NDEBUG
static void dumpUnpackedICmp(raw_ostream &OS, ICmpInst::Predicate Pred,
Value *LHS, Value *RHS) {
OS << "icmp " << Pred << ' ';
@ -1116,6 +1117,7 @@ static void dumpUnpackedICmp(raw_ostream &OS, ICmpInst::Predicate Pred,
OS << ", ";
RHS->printAsOperand(OS, /*PrintType=*/false);
}
#endif
namespace {
/// Helper to keep track of a condition and if it should be treated as negated