[llvm] [InstCombine] Transform (fcmp + fadd + sel) into (fcmp + sel + fadd) (PR #106492)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 24 06:14:17 PDT 2024


================
@@ -3633,6 +3633,65 @@ static bool hasAffectedValue(Value *V, SmallPtrSetImpl<Value *> &Affected,
   return false;
 }
 
+// This transformation enables the possibility of transforming fcmp + sel into
+// a fmaxnum/fminnum intrinsic.
----------------
arsenm wrote:

Intrinsics are actually called minnum/maxnum 

https://github.com/llvm/llvm-project/pull/106492


More information about the llvm-commits mailing list