[llvm] [InstCombine] Generalize zext(add X, -C) + C folding (PR #191723)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 12 23:32:34 PDT 2026
Maiowaa wrote:
Updated in v3:
Fixed type width mismatch bug: truncate outer C to inner bitwidth before comparison
Removed separate C==1 block, now handled uniformly by the general case
Added negative tests: C=260 overflow case and mismatched C/inner-C case
https://github.com/llvm/llvm-project/pull/191723
More information about the llvm-commits
mailing list