mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-06 04:09:04 +00:00
[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
74608c9091
commit
e35270bbad
@ -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…
x
Reference in New Issue
Block a user