[llvm] [ConstraintElim] Add trunc nuw support to condition checks (PR #209844)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 16 02:58:15 PDT 2026
================
@@ -1698,10 +1697,13 @@ static bool checkOrAndOpImpliedByOther(
if (OldSize == DFSInStack.size())
return false;
+ Value *A, *B;
+ CmpPredicate Pred;
+ bool Matched = match(CmpToCheck, m_ICmpLike(Pred, m_Value(A), m_Value(B)));
+ (void)Matched;
----------------
fhahn wrote:
nit: could use more modern
```suggestion
[[maybe_unused]] bool Matched = match(CmpToCheck, m_ICmpLike(Pred, m_Value(A), m_Value(B)));
```
https://github.com/llvm/llvm-project/pull/209844
More information about the llvm-commits
mailing list