[PATCH] D137844: [DAG] Fold zext/sext into masked loads with multiple truncate uses

Benjamin Maxwell via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 14 05:29:49 PST 2022


benmxwl-arm updated this revision to Diff 475116.
benmxwl-arm added a comment.

Replace the loads in the same way `tryToFoldExtOfLoad()` handles it. This avoids some errors in the DAG.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D137844

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/AArch64/sve-load-compare-store.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137844.475116.patch
Type: text/x-patch
Size: 4524 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221114/e51fe991/attachment.bin>


More information about the llvm-commits mailing list