forked from OSchip/llvm-project
[TargetLowering] SimplifySetCC - remove repeated variable. NFCI.
Also reduce scope of Temp variable. llvm-svn: 359911
This commit is contained in:
parent
db900e389a
commit
308b5ec1ff
|
@ -3330,9 +3330,8 @@ SDValue TargetLowering::SimplifySetCC(EVT VT, SDValue N0, SDValue N1,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fold away ALL boolean setcc's.
|
// Fold away ALL boolean setcc's.
|
||||||
SDValue Temp;
|
|
||||||
if (N0.getValueType().getScalarType() == MVT::i1 && foldBooleans) {
|
if (N0.getValueType().getScalarType() == MVT::i1 && foldBooleans) {
|
||||||
EVT OpVT = N0.getValueType();
|
SDValue Temp;
|
||||||
switch (Cond) {
|
switch (Cond) {
|
||||||
default: llvm_unreachable("Unknown integer setcc!");
|
default: llvm_unreachable("Unknown integer setcc!");
|
||||||
case ISD::SETEQ: // X == Y -> ~(X^Y)
|
case ISD::SETEQ: // X == Y -> ~(X^Y)
|
||||||
|
|
Loading…
Reference in New Issue