forked from OSchip/llvm-project
[DAGCombine] visitVSELECT - remove duplicate getOperand calls. NFCI.
llvm-svn: 370478
This commit is contained in:
parent
a559095054
commit
c2fed1dc8a
|
@ -8730,10 +8730,9 @@ SDValue DAGCombiner::visitVSELECT(SDNode *N) {
|
|||
// This is OK if we don't care about what happens if either operand is a
|
||||
// NaN.
|
||||
//
|
||||
if (N0.hasOneUse() && isLegalToCombineMinNumMaxNum(DAG, N0.getOperand(0),
|
||||
N0.getOperand(1), TLI)) {
|
||||
if (SDValue FMinMax = combineMinNumMaxNum(
|
||||
DL, VT, N0.getOperand(0), N0.getOperand(1), N1, N2, CC, TLI, DAG))
|
||||
if (N0.hasOneUse() && isLegalToCombineMinNumMaxNum(DAG, LHS, RHS, TLI)) {
|
||||
if (SDValue FMinMax =
|
||||
combineMinNumMaxNum(DL, VT, LHS, RHS, N1, N2, CC, TLI, DAG))
|
||||
return FMinMax;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue