[PATCH] D137934: [InstCombine] Fold extractelt with select of constants

Thomas Symalla via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 15 03:30:02 PST 2022


tsymalla updated this revision to Diff 475413.
tsymalla added a comment.

Removed the whole custom implementation as InstCombine is already able 
to do the constant folding, but the Visitor for extractelement needs an 
additional check to prevent folding the constants into select operands
when the select uses a condition vector.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D137934

Files:
  llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
  llvm/test/Transforms/InstCombine/extractelement.ll
  llvm/test/Transforms/InstCombine/shufflevector-div-rem-inseltpoison.ll
  llvm/test/Transforms/InstCombine/shufflevector-div-rem.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137934.475413.patch
Type: text/x-patch
Size: 5908 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221115/33d80beb/attachment.bin>


More information about the llvm-commits mailing list