[llvm] [GlobalISel] Combine (X == 0) & (Y == 0) -> (X | Y) == 0 (PR #71949)

Dávid Ferenc Szabó via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 27 03:31:46 PST 2024


dfszabo wrote:

Very recently got merged this https://github.com/llvm/llvm-project/pull/82733, which will insert G_FREEZE before the G_OR (https://godbolt.org/z/dcr83rfM6) causing now the above patterns not to work on cases like in `cmp-chain.ll`, losing those opt opportunities. I am not sure if G_FREEZE should be incorporated into the pattern or not.

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


More information about the llvm-commits mailing list