[DAGCombine] visitVSELECT - remove duplicate getOperand calls. NFCI.

llvm-svn: 370478
This commit is contained in:
Simon Pilgrim 2019-08-30 15:17:37 +00:00
parent a559095054
commit c2fed1dc8a
1 changed files with 3 additions and 4 deletions

View File

@ -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;
}