forked from OSchip/llvm-project
[X86] Simplify if condition. NFC
SSE2 implies SSE1 and we already covered f32 in the SSE1 check so we don't need to check f32 in the SSE2 check. llvm-svn: 326170
This commit is contained in:
parent
b424cd5d61
commit
264707bae4
|
@ -18434,7 +18434,7 @@ SDValue X86TargetLowering::LowerSELECT(SDValue Op, SelectionDAG &DAG) const {
|
|||
// are available or VBLENDV if AVX is available.
|
||||
// Otherwise FP cmovs get lowered into a less efficient branch sequence later.
|
||||
if (Cond.getOpcode() == ISD::SETCC &&
|
||||
((Subtarget.hasSSE2() && (VT == MVT::f32 || VT == MVT::f64)) ||
|
||||
((Subtarget.hasSSE2() && VT == MVT::f64) ||
|
||||
(Subtarget.hasSSE1() && VT == MVT::f32)) &&
|
||||
VT == Cond.getOperand(0).getSimpleValueType() && Cond->hasOneUse()) {
|
||||
SDValue CondOp0 = Cond.getOperand(0), CondOp1 = Cond.getOperand(1);
|
||||
|
|
Loading…
Reference in New Issue