[llvm] [InstCombine] Avoid DeMorgan's on occasion (PR #109215)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 18 16:15:10 PDT 2024


topperc wrote:

Preventing the transform in InstCombine only solves the problem if the user was aware of the existence of andn and wrote their code as `s &= ~(z & ~y)`. A user unaware of `andn` might write `s &= ~z | y` in their code because it looks simpler.

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


More information about the llvm-commits mailing list