[llvm] [TargetLowering] Fold (a | b) ==/!= b -> (a & ~b) ==/!= 0 when and-not exists (PR #145368)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 24 09:24:37 PDT 2025


topperc wrote:

> Note that there is also a comment in this file from a developer lamenting how m_Or would have been useful. This also implies they found m_Or could not be used, so this problem has come up in Target Lowering.

I see no mention of m_Or in TargetLowering.cpp. Please link to the comment.

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


More information about the llvm-commits mailing list