Use SDValue bool check to tidyup some possible combines. NFC.

llvm-svn: 232331
This commit is contained in:
Simon Pilgrim 2015-03-15 19:47:42 +00:00
parent 6eb776547e
commit e2c6a1b96d
1 changed files with 2 additions and 4 deletions

View File

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