[llvm] [llvm][GVN] Propagate `trunc nuw to i1` equalities (PR #143273)

Yash Solanki via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 8 05:21:45 PDT 2025


================
@@ -2579,6 +2579,14 @@ bool GVNPass::propagateEquality(Value *LHS, Value *RHS,
 
       continue;
     }
+
+    // Propagate equality that result from truncation with no unsigned wrap
----------------
yashnator wrote:

Adressed, thanks!

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


More information about the llvm-commits mailing list