[PATCH] D137934: [InstCombine] Fold extractelt with select of constants
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 15 01:40:59 PST 2022
foad added a comment.
You don't need your new function FoldExtractElementSelectConstVector at all. All you should need to do is to call FoldOpIntoSelect from visitExtractElementInst, and add (trivial) support for ExtractElementInst in foldOperationIntoSelectOperand. For example: https://reviews.llvm.org/differential/diff/475368/
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