[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


================
@@ -4121,8 +4113,7 @@ define <4 x i32> @ugt_1_v4i32(<4 x i32> %0) {
 ; PWR7-NEXT:    vadduwm 3, 2, 3
 ; PWR7-NEXT:    xxland 34, 34, 35
 ; PWR7-NEXT:    xxlxor 35, 35, 35
-; PWR7-NEXT:    vcmpequw 2, 2, 3
-; PWR7-NEXT:    xxlnor 34, 34, 34
+; PWR7-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