forked from OSchip/llvm-project
[TargetLowering] Remove redundant term in two ifs in SimplifySetCC. NFC
If we get into the right hand side of the OR, we know that isOpaque is true since the left hand size is just a check that it's false. llvm-svn: 327179
This commit is contained in:
parent
d0f595d77c
commit
508a5b2466
|
@ -2256,7 +2256,7 @@ SDValue TargetLowering::SimplifySetCC(EVT VT, SDValue N0, SDValue N1,
|
|||
ISD::CondCode NewCC = (Cond == ISD::SETGE) ? ISD::SETGT : ISD::SETUGT;
|
||||
if ((DCI.isBeforeLegalizeOps() ||
|
||||
isCondCodeLegal(NewCC, VT.getSimpleVT())) &&
|
||||
(!N1C->isOpaque() || (N1C->isOpaque() && C.getBitWidth() <= 64 &&
|
||||
(!N1C->isOpaque() || (C.getBitWidth() <= 64 &&
|
||||
isLegalICmpImmediate(C.getSExtValue())))) {
|
||||
return DAG.getSetCC(dl, VT, N0,
|
||||
DAG.getConstant(C, dl, N1.getValueType()),
|
||||
|
@ -2276,7 +2276,7 @@ SDValue TargetLowering::SimplifySetCC(EVT VT, SDValue N0, SDValue N1,
|
|||
ISD::CondCode NewCC = (Cond == ISD::SETLE) ? ISD::SETLT : ISD::SETULT;
|
||||
if ((DCI.isBeforeLegalizeOps() ||
|
||||
isCondCodeLegal(NewCC, VT.getSimpleVT())) &&
|
||||
(!N1C->isOpaque() || (N1C->isOpaque() && C.getBitWidth() <= 64 &&
|
||||
(!N1C->isOpaque() || (C.getBitWidth() <= 64 &&
|
||||
isLegalICmpImmediate(C.getSExtValue())))) {
|
||||
return DAG.getSetCC(dl, VT, N0,
|
||||
DAG.getConstant(C, dl, N1.getValueType()),
|
||||
|
|
Loading…
Reference in New Issue