[llvm] [ValueTracking] Make `computeKnownBitsFromContext` deterministic (PR #75452)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 14 02:03:31 PST 2023


nikic wrote:

Uff, this is really ugly.

I feel like we might be better off removing the lshr case from getFreelyInverted and handling the `~lshr(~x)` case as an explicit pattern, to avoid polluting ValueTracking with another single-use flag.

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


More information about the llvm-commits mailing list