[llvm] [SeperateConstOffsetFromGEP] Handle `or disjoint` flags (PR #76997)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 4 12:38:55 PST 2024


nikic wrote:

> As with other `or disjoint`-handling commits, this does not remove the existing check for the or's operands having no bits in common because `disjoint` is currently not inferred.

disjoint is inferred on the IR level, so you should remove the haveNoCommonBitsSet() call (and adjust tests that depend on it), unless there is some special circumstance here that requires otherwise.

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


More information about the llvm-commits mailing list