[PATCH] D49698: [PowerPC] Generate lxsd instead of the ld->mtvsrd sequence for vector loads

Amy Kwan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 23 13:58:02 PDT 2018


amyk created this revision.
amyk added reviewers: nemanjai, echristo, hfinkel.
Herald added a subscriber: hiraditya.

This patch addresses:

- Implementation within `PPCISelLowering.cpp` to check if we should use direct load into vector instructions (such as `lxsd`/`lfd` ) when the `scalar_to_vector` function is used; which will allow us to catch as many cases of the scalar_to_vector uses as possible to translate the ld->mtvsrd sequence into lxsd.
- Test cases to exhibit the behaviour of emitting `lxsd`/`lfd`.


https://reviews.llvm.org/D49698

Files:
  llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  llvm/test/CodeGen/PowerPC/pre-inc-disable.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49698.156870.patch
Type: text/x-patch
Size: 18605 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180723/b8bbadf4/attachment.bin>


More information about the llvm-commits mailing list