This patch adds the following fold opportunity:
A|B | (A^B) --> A|B
that is reported here : https://bugs.llvm.org/show_bug.cgi?id=52479
https://alive2.llvm.org/ce/z/33-My-
Test cases with base results are added in D113860
Differential D113861
[InstSimplify] Fold A|B | (A^B) --> A|B MehrHeidar on Nov 14 2021, 1:05 PM. Authored by
Details This patch adds the following fold opportunity: that is reported here : https://bugs.llvm.org/show_bug.cgi?id=52479 https://alive2.llvm.org/ce/z/33-My- Test cases with base results are added in D113860
Diff Detail
Event TimelineComment Actions This needs some lit tests.
Comment Actions Yes, I don't have commit access yet. If it's possible, can you please commit it? Mehrnoosh Heidarpour Comment Actions @rampitec I think you committed this patch with your name and not mine! Comment Actions That's what is there: (authored by MehrHeidar, committed by rampitec): https://reviews.llvm.org/rG193c40e9667ca2b173232b393fc72ea9e4944aa3 Comment Actions True, that's what is there. It's under your name and not mine anymore! Comment Actions Yes please. Thanks, I can ask another one to commit, maybe they know the trick to use my email address. Comment Actions @rampitec, use git commit --author="Mehrnoosh Heidarpour <mehrnoosh.heidarpour@huawei.com>". If you're --amending you might also need --reset-author. When LLVM was still in SVN it was impossible to commit under a different name, so it's actually quite common to have the actual author named only in the message. |
Just curious: don't we have matchers that will automatically match both the swapped and non-swapped forms of a commutative op?