[llvm] [ValueTracking] Recognize `X op (X != 0)` as non-zero (PR #88579)

via llvm-commits llvm-commits at lists.llvm.org
Mon May 20 20:51:20 PDT 2024


goldsteinn wrote:

> Pretty sure that this will miscompile if X is undef and isKnownNonZero() is used in a transform that retains the original expression.

Hmm? The proofs allow for `undef`.

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


More information about the llvm-commits mailing list