[llvm] [PowerPC] Optimize not equal compares against zero vectors (PR #150422)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 10 21:09:53 PST 2025
================
@@ -1031,7 +1031,7 @@ define <4 x float> @hoo3_fmf(<4 x float> %a) #1 {
; CHECK-P7-NEXT: vmaddfp 5, 5, 0, 3
; CHECK-P7-NEXT: vmaddfp 3, 5, 4, 3
; CHECK-P7-NEXT: vxor 4, 4, 4
-; CHECK-P7-NEXT: vcmpeqfp 2, 2, 4
+; CHECK-P7-NEXT: vcmpgefp 2, 4, 2
----------------
Himadhith wrote:
This was due to the attribute `denormal-fp-math` being present in the recipest.ll file. I have modified the code now to not handle `fp` values as comparison works different with the flag `denormal-fp-math` enabled.
https://github.com/llvm/llvm-project/pull/150422
More information about the llvm-commits
mailing list