[llvm] [InstCombine] Evaluate zext nneg as sext where possible (PR #212230)

Valeriy Savchenko via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 5 04:49:48 PDT 2026


================

----------------
SavchenkoValeriy wrote:

I'm a bit concerned that we effectively do two traversals for `nonneg` zexts. Here and the newly added check. Can we hoist the check up here and remove the predicate for `canEvaluateZExtd` if `EvaluateAsSigned` is true?

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


More information about the llvm-commits mailing list