[PATCH] D132658: [InstCombine] Distributive or+mul with const operand

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 26 03:12:27 PDT 2022


RKSimon added inline comments.


================
Comment at: llvm/test/Transforms/InstCombine/mul.ll:690
+  ret <2 x i32> %mul
+}
+
----------------
Please can you add a case with undefs in the vector constants:

define <2 x i32> @PR57278_shl_vec_undef(<2 x i32> %v1) {
  %shl = shl nuw <2 x i32> %v1, <i32 2, i32 undef>
  %add = or <2 x i32> %shl, <i32 3, i32 undef>
  %mul = mul nuw <2 x i32> %add, <i32 3, i32 undef>
  ret <2 x i32> %mul
}


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

https://reviews.llvm.org/D132658



More information about the llvm-commits mailing list