[PATCH] D144086: [AArch64] Load into zero vector patterns

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 15 03:16:20 PST 2023


dmgreen created this revision.
dmgreen added reviewers: SjoerdMeijer, samtebbs, bipmis, david-arm, t.p.northover.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
dmgreen requested review of this revision.
Herald added a project: LLVM.

A LDR will implicitly zero the rest of the vector, so `vector_insert(zeros, load, 0)` can use a single load. This adds tablegen patterns for both scaled and unscaled loads, detecting where we are inserting a load into the lower element of a zero vector.


https://reviews.llvm.org/D144086

Files:
  llvm/lib/Target/AArch64/AArch64InstrInfo.td
  llvm/test/CodeGen/AArch64/load-insert-zero.ll
  llvm/test/CodeGen/AArch64/speculation-hardening-loads.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144086.497613.patch
Type: text/x-patch
Size: 18268 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230215/713311c2/attachment.bin>


More information about the llvm-commits mailing list