[llvm] [InstCombine] Extend fcmp+select folding to minnum/maxnum intrinsics (PR #112088)
Alexey Bader via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 14 08:03:22 PDT 2024
================
@@ -3834,11 +3834,13 @@ Instruction *InstCombinerImpl::visitSelectInst(SelectInst &SI) {
// minnum/maxnum intrinsics.
if (SIFPOp->hasNoNaNs() && SIFPOp->hasNoSignedZeros()) {
Value *X, *Y;
----------------
bader wrote:
Could you give an example when this check is needed, please? According to my understanding, the code handles multiple uses correctly.
https://github.com/llvm/llvm-project/pull/112088
More information about the llvm-commits
mailing list