[llvm] [PowerPC] replace vector compare equal to with vector compare greater than (PR #150422)

Tony Varghese via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 11 02:20:00 PDT 2025


================
@@ -4111,8 +4104,7 @@ define <4 x i32> @ugt_1_v4i32(<4 x i32> %0) {
 ; PWR6-NEXT:    vadduwm 3, 2, 3
 ; PWR6-NEXT:    vand 2, 2, 3
 ; PWR6-NEXT:    vxor 3, 3, 3
-; PWR6-NEXT:    vcmpequw 2, 2, 3
-; PWR6-NEXT:    vnot 2, 2
+; PWR6-NEXT:    vcmpgtuw 2, 2, 3
----------------
tonykuttai wrote:

Same as above, please verify if these are equivalent comparisons.

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


More information about the llvm-commits mailing list