[PATCH] D137934: [InstCombine] Fold extractelt with select of constants
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 14 08:20:40 PST 2022
spatel added a comment.
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
}
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