[llvm] [InstCombine] Simplify `(add/sub (sub/add) (sub/add))` irrelivant of use-count (PR #105866)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 23 13:27:45 PDT 2024
goldsteinn wrote:
> This patch causes clang to miscompile lief: Reproducer:
>
[... snip ...]
>
> It should map `0` to `65(ascii 'A')`, not `-1`.
Fixed... wasnt guarding the `foldAddLike` in `visitOr` with a `disjoint` check...
https://github.com/llvm/llvm-project/pull/105866
More information about the llvm-commits
mailing list