[TargetLowering] SimplifySetCC - remove repeated variable. NFCI.

Also reduce scope of Temp variable.

llvm-svn: 359911
This commit is contained in:
Simon Pilgrim 2019-05-03 18:02:33 +00:00
parent db900e389a
commit 308b5ec1ff
1 changed files with 1 additions and 2 deletions

View File

@ -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)