forked from OSchip/llvm-project
Move the retrieval of VT after all of the early exits from PerformOrCombine that do not use VT. NFC.
llvm-svn: 199612
This commit is contained in:
parent
84fcbdea21
commit
8347c34e67
|
@ -17967,7 +17967,6 @@ static SDValue PerformAndCombine(SDNode *N, SelectionDAG &DAG,
|
|||
static SDValue PerformOrCombine(SDNode *N, SelectionDAG &DAG,
|
||||
TargetLowering::DAGCombinerInfo &DCI,
|
||||
const X86Subtarget *Subtarget) {
|
||||
EVT VT = N->getValueType(0);
|
||||
if (DCI.isBeforeLegalizeOps())
|
||||
return SDValue();
|
||||
|
||||
|
@ -17977,6 +17976,7 @@ static SDValue PerformOrCombine(SDNode *N, SelectionDAG &DAG,
|
|||
|
||||
SDValue N0 = N->getOperand(0);
|
||||
SDValue N1 = N->getOperand(1);
|
||||
EVT VT = N->getValueType(0);
|
||||
|
||||
// look for psign/blend
|
||||
if (VT == MVT::v2i64 || VT == MVT::v4i64) {
|
||||
|
|
Loading…
Reference in New Issue