[PATCH] D92230: [SVE][CodeGen] Add DAG combines for s/zext_masked_gather

Kerry McLaughlin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 27 07:19:42 PST 2020

kmclaughlin created this revision.
kmclaughlin added reviewers: sdesmalen, efriedma, craig.topper.
Herald added subscribers: llvm-commits, ecnelises, steven.zhang, psnobl, hiraditya, tschuett.
Herald added a project: LLVM.
kmclaughlin requested review of this revision.

This patch adds the following DAGCombines, which apply if isVectorLoadExtDesirable() returns true:

- fold (and (masked_gather x)) -> (zext_masked_gather x)
- fold (sext_inreg (masked_gather x)) -> (sext_masked_gather x)

LowerMGATHER has also been updated to fetch the LoadExtType associated with the
gather and also use this value to determine the correct masked gather opcode to use.

  rG LLVM Github Monorepo



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92230.308050.patch
Type: text/x-patch
Size: 6568 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201127/37179951/attachment.bin>

More information about the llvm-commits mailing list