[llvm] [InstCombine] Fold more 'fcmp' 'select' instrs idioms into 'fabs' (PR #83381)

Andy Kaylor via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 29 15:07:31 PST 2024


================
@@ -547,6 +547,20 @@ define double @select_fcmp_nnan_nsz_ult_zero_unary_fneg(double %x) {
   ret double %fabs
 }
 
+
+define float @absfloat32f_olt_fast_no_signed_zeroes(float %x) "no-signed-zeros-fp-math" {
----------------
andykaylor wrote:

If there aren't already test cases showing that this won't happen without the function attribute, can you add them?

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


More information about the llvm-commits mailing list