[llvm] [InstCombine] Extend fcmp+select folding to minnum/maxnum intrinsics (PR #112088)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 13 23:10:17 PDT 2024
================
@@ -3834,11 +3834,13 @@ Instruction *InstCombinerImpl::visitSelectInst(SelectInst &SI) {
// minnum/maxnum intrinsics.
if (SIFPOp->hasNoNaNs() && SIFPOp->hasNoSignedZeros()) {
Value *X, *Y;
----------------
arsenm wrote:
This combine seems to be missing a hasOneUse check?
https://github.com/llvm/llvm-project/pull/112088
More information about the llvm-commits
mailing list