[PATCH] D56703: PowerPC: Fix register spilling for SPE registers

Justin Hibbits via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 14 20:38:30 PST 2019


jhibbits created this revision.
jhibbits added reviewers: nemanjai, hfinkel, joerg.
Herald added subscribers: llvm-commits, jsji, kbarton.

Missed in the original commit, use the correct callee-saved register
list for spilling, instead of the standard SVR432 list.  This avoids
needlessly spilling the SPE non-volatile registers when they're not used.

As part of this, also add where missing, and sort, the spill opcode
checks for SPE and SPE4 register classes.


Repository:
  rL LLVM

https://reviews.llvm.org/D56703

Files:
  lib/Target/PowerPC/PPCCallingConv.td
  lib/Target/PowerPC/PPCInstrInfo.cpp
  lib/Target/PowerPC/PPCRegisterInfo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56703.181713.patch
Type: text/x-patch
Size: 6661 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190115/0fd93efd/attachment.bin>


More information about the llvm-commits mailing list