[PATCH] D137934: [InstCombine] Fold extractelt with select of constants
Thomas Symalla via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 14 08:33:23 PST 2022
tsymalla added a comment.
In D137934#3925091 <https://reviews.llvm.org/D137934#3925091>, @spatel wrote:
> This is missing at least one critical pattern-matching constraint (and regression test - because this will crash):
>
> define i32 @extelt_vecselect_const_operand_vector(<3 x i1> %c) {
> %s = select <3 x i1> %c, <3 x i32> <i32 2, i32 3, i32 4>, <3 x i32> <i32 5, i32 6, i32 7>
> %r = extractelement <3 x i32> %s, i32 2
> ret i32 %r
> }
Thanks!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137934/new/
https://reviews.llvm.org/D137934
More information about the llvm-commits
mailing list