[PATCH] D129281: [llvm][SVE] Remove redundant and when comparing against extending load

David Truby via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 7 05:48:28 PDT 2022


DavidTruby created this revision.
Herald added subscribers: ctetreau, ecnelises, psnobl, hiraditya, tschuett.
Herald added a reviewer: efriedma.
Herald added a project: All.
DavidTruby requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

When determining if an `and` should be merged into an extending load
the constant argument to the `and` is currently not checked if the
argument requires truncation. This prevents the combine happening when
the vector width is half the normal available vector width for SVE VLA
vectors.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D129281

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/AArch64/sve-extload-icmp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129281.442875.patch
Type: text/x-patch
Size: 4707 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220707/84204170/attachment.bin>


More information about the llvm-commits mailing list