[llvm] 7730853 - [SelectionDAG] Use DAG.getSelect (NFC) (#143276)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 7 18:27:14 PDT 2025
Author: AZero13
Date: 2025-06-08T10:27:10+09:00
New Revision: 7730853fa1b955680478dc9cab69287897519765
URL: https://github.com/llvm/llvm-project/commit/7730853fa1b955680478dc9cab69287897519765
DIFF: https://github.com/llvm/llvm-project/commit/7730853fa1b955680478dc9cab69287897519765.diff
LOG: [SelectionDAG] Use DAG.getSelect (NFC) (#143276)
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index aba3c0f80a024..ef084863cae3d 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -29119,9 +29119,8 @@ SDValue DAGCombiner::buildSqrtEstimateImpl(SDValue Op, SDNodeFlags Flags,
// The estimate is now completely wrong if the input was exactly 0.0 or
// possibly a denormal. Force the answer to 0.0 or value provided by
// target for those cases.
- Est = DAG.getNode(
- Test.getValueType().isVector() ? ISD::VSELECT : ISD::SELECT, DL, VT,
- Test, TLI.getSqrtResultForDenormInput(Op, DAG), Est);
+ Est = DAG.getSelect(DL, VT, Test,
+ TLI.getSqrtResultForDenormInput(Op, DAG), Est);
}
return Est;
}
More information about the llvm-commits
mailing list