[PATCH] D132658: [InstCombine] Distributive or+mul with const operand
Allen zhong via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 26 04:43:54 PDT 2022
Allen marked an inline comment as done.
Allen added inline comments.
================
Comment at: llvm/test/Transforms/InstCombine/mul.ll:690
+ ret <2 x i32> %mul
+}
+
----------------
RKSimon wrote:
> 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
> }
Done, Thanks
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132658/new/
https://reviews.llvm.org/D132658
More information about the llvm-commits
mailing list