[PATCH] D38037: [InstCombine] Compacting or instructions whose operands are shift instructions

michael zuckerman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 10 13:25:32 PDT 2017


m_zuckerman added inline comments.


================
Comment at: test/Transforms/InstCombine/or-xor.ll:419
+; (((x ^ C1) | (x & C2)) | ((y ^ C1) | (y & C2))) ->
+; (((x ^ C1) | (y ^ C2)) | ((x | y) & C2))
+define i32 @or_or_xor_and(i32 %x, i32 %y) local_unnamed_addr #0  {
----------------
(((x ^ C1) | (y ^ C2)) | ((x | y) & C2)) - > (((x ^ C1) | (y ^ C1)) | ((x | y) & C2))


Repository:
  rL LLVM

https://reviews.llvm.org/D38037





More information about the llvm-commits mailing list