From 308b5ec1ff476710a83bd0ab2d6490a20d8f4f38 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Fri, 3 May 2019 18:02:33 +0000 Subject: [PATCH] [TargetLowering] SimplifySetCC - remove repeated variable. NFCI. Also reduce scope of Temp variable. llvm-svn: 359911 --- llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 73fda1b..a961685 100644 --- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -3330,9 +3330,8 @@ SDValue TargetLowering::SimplifySetCC(EVT VT, SDValue N0, SDValue N1, } // Fold away ALL boolean setcc's. - SDValue Temp; if (N0.getValueType().getScalarType() == MVT::i1 && foldBooleans) { - EVT OpVT = N0.getValueType(); + SDValue Temp; switch (Cond) { default: llvm_unreachable("Unknown integer setcc!"); case ISD::SETEQ: // X == Y -> ~(X^Y) -- 2.7.4