[llvm] [TargetLowering] Fold (a | b) ==/!= b -> (a & ~b) ==/!= 0 when and-not exists (PR #145368)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 24 09:49:15 PDT 2025
AZero13 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.
>
> Oh it's `m_c_Or` and the comment was written before SDPatternMatch.h existed. It was suggesting that having m_c_Or like the IR PatternMatch.h would be useful. And indeed it is so we have SDPatternMatch.h now.
Fixed
https://github.com/llvm/llvm-project/pull/145368
More information about the llvm-commits
mailing list