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

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 8 03:24:59 PDT 2025


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

```suggestion
    // Propagate equalities that result from truncation with no unsigned wrap
```
or
```suggestion
    // Propagate equality that results from truncation with no unsigned wrap
```

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


More information about the llvm-commits mailing list