[PATCH] D145301: Add more efficient vector bitcast for AArch64

Lawrence Benson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 21 02:40:05 PDT 2023


lawben updated this revision to Diff 506884.
lawben added a comment.

Apply the bitcast to truncating stores.

The first commit only covers the case with an explicit bitcast to a scalar value. When directly storing the comparison result as a scalar value, this can be done via a truncating 
store. In that case, we also want to apply the combine step to get the more efficient conversion.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D145301

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/vec-combine-compare-and-store.ll
  llvm/test/CodeGen/AArch64/vec-combine-compare-to-bitmask.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145301.506884.patch
Type: text/x-patch
Size: 16790 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230321/f60095a4/attachment.bin>


More information about the llvm-commits mailing list