Skip to content

Commit e819cf7

Browse files
AZero13tomtor
authored andcommitted
[SelectionDAG] Use DAG.getSelect (NFC) (llvm#143276)
1 parent a19c7f1 commit e819cf7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29119,9 +29119,8 @@ SDValue DAGCombiner::buildSqrtEstimateImpl(SDValue Op, SDNodeFlags Flags,
2911929119
// The estimate is now completely wrong if the input was exactly 0.0 or
2912029120
// possibly a denormal. Force the answer to 0.0 or value provided by
2912129121
// target for those cases.
29122-
Est = DAG.getNode(
29123-
Test.getValueType().isVector() ? ISD::VSELECT : ISD::SELECT, DL, VT,
29124-
Test, TLI.getSqrtResultForDenormInput(Op, DAG), Est);
29122+
Est = DAG.getSelect(DL, VT, Test,
29123+
TLI.getSqrtResultForDenormInput(Op, DAG), Est);
2912529124
}
2912629125
return Est;
2912729126
}

0 commit comments

Comments
 (0)