mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-03 10:27:09 +00:00
Enable optimization for integer ABS on X86 if Subtarget has CMOV.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158220 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6620ccf5d8
commit
45d53b866e
@ -14548,9 +14548,11 @@ static SDValue PerformXorCombine(SDNode *N, SelectionDAG &DAG,
|
||||
if (DCI.isBeforeLegalizeOps())
|
||||
return SDValue();
|
||||
|
||||
SDValue RV = performIntegerAbsCombine(N, DAG);
|
||||
if (RV.getNode())
|
||||
return RV;
|
||||
if (Subtarget->hasCMov()) {
|
||||
SDValue RV = performIntegerAbsCombine(N, DAG);
|
||||
if (RV.getNode())
|
||||
return RV;
|
||||
}
|
||||
|
||||
// Try forming BMI if it is available.
|
||||
if (!Subtarget->hasBMI())
|
||||
|
Loading…
x
Reference in New Issue
Block a user