forked from OSchip/llvm-project
Use SDValue bool check to tidyup some possible combines. NFC.
llvm-svn: 232331
This commit is contained in:
parent
6eb776547e
commit
e2c6a1b96d
|
@ -22043,12 +22043,10 @@ static SDValue PerformAndCombine(SDNode *N, SelectionDAG &DAG,
|
|||
if (DCI.isBeforeLegalizeOps())
|
||||
return SDValue();
|
||||
|
||||
SDValue Zext = VectorZextCombine(N, DAG, DCI, Subtarget);
|
||||
if (Zext.getNode())
|
||||
if (SDValue Zext = VectorZextCombine(N, DAG, DCI, Subtarget))
|
||||
return Zext;
|
||||
|
||||
SDValue R = CMPEQCombine(N, DAG, DCI, Subtarget);
|
||||
if (R.getNode())
|
||||
if (SDValue R = CMPEQCombine(N, DAG, DCI, Subtarget))
|
||||
return R;
|
||||
|
||||
EVT VT = N->getValueType(0);
|
||||
|
|
Loading…
Reference in New Issue