From: Benjamin Kramer Date: Wed, 23 Nov 2022 20:09:33 +0000 (+0100) Subject: [PowerPC][NFC] Merge LLVM_DEBUG statements to avoid unused variable warnings X-Git-Tag: upstream/17.0.6~26703 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bfc812a2f32698ef383d486c25fa6abc001d6466;p=platform%2Fupstream%2Fllvm.git [PowerPC][NFC] Merge LLVM_DEBUG statements to avoid unused variable warnings --- diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index 3c56d55..31e6dda 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -10264,15 +10264,17 @@ SDValue PPCTargetLowering::LowerVPERM(SDValue Op, SelectionDAG &DAG, ShufflesHandledWithVPERM++; SDValue VPermMask = DAG.getBuildVector(MVT::v16i8, dl, ResultMask); - ShuffleVectorSDNode *SVOp = cast(Op); - if (Opcode == PPCISD::XXPERM) { - LLVM_DEBUG(dbgs() << "Emitting a XXPERM for the following shuffle:\n"); - } else { - LLVM_DEBUG(dbgs() << "Emitting a VPERM for the following shuffle:\n"); - } - LLVM_DEBUG(SVOp->dump()); - LLVM_DEBUG(dbgs() << "With the following permute control vector:\n"); - LLVM_DEBUG(VPermMask.dump()); + LLVM_DEBUG({ + ShuffleVectorSDNode *SVOp = cast(Op); + if (Opcode == PPCISD::XXPERM) { + dbgs() << "Emitting a XXPERM for the following shuffle:\n"; + } else { + dbgs() << "Emitting a VPERM for the following shuffle:\n"; + } + SVOp->dump(); + dbgs() << "With the following permute control vector:\n"; + VPermMask.dump(); + }); if (Opcode == PPCISD::XXPERM) VPermMask = DAG.getBitcast(MVT::v4i32, VPermMask);