[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:19:59 PDT 2025


================
@@ -4570,6 +4570,16 @@ bool PPCDAGToDAGISel::trySETCC(SDNode *N) {
     if (Subtarget->hasSPE())
       return false;
 
+    // To optimize zero-vector comparisons and avoid the extra step of negation,
----------------
tonykuttai wrote:

Please improve the comment to specify what the code snippet does.

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


More information about the llvm-commits mailing list