[PATCH] D113861: [InstSimplify] Fold A|B | (A^B) --> A|B

Mehrnoosh Heidarpour via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 15 11:47:15 PST 2021


MehrHeidar marked an inline comment as done.
MehrHeidar added inline comments.


================
Comment at: llvm/test/Transforms/InstSimplify/or.ll:456
 ;
   %i1 = or i69 %A, %B
   %i2 = xor i69 %A, %B
----------------
rampitec wrote:
> I think you need 2 more tests with commuted 'or' operands to cover 2 m_c_Or patterns.
I added two more test cases as per your suggestion. 
Thanks


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113861/new/

https://reviews.llvm.org/D113861



More information about the llvm-commits mailing list