[PATCH] D64195: [PowerPC] Replace float load/store pair with integer load/store pair when it's only used in load/store
Zixuan Wu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 4 01:11:16 PDT 2019
wuzish created this revision.
wuzish added reviewers: hfinkel, nemanjai, jsji, eli.friedman.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Replace float load/store pair with integer load/store pair when it's only used in load/store, because float load/store instructions cost more cycles then integer load/store.
A typical scenario is when there is a call with more than 13 float arguments passing, we need pass them by stack. So we need a load/store pair to do such memory operation if the variable is global variable.
Repository:
rL LLVM
https://reviews.llvm.org/D64195
Files:
lib/Target/PowerPC/PPCISelLowering.h
test/CodeGen/PowerPC/float-load-store-pair.ll
test/CodeGen/PowerPC/ppc64-smallarg.ll
test/CodeGen/PowerPC/ppc64le-smallarg.ll
test/CodeGen/PowerPC/pwr7-gt-nop.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64195.207979.patch
Type: text/x-patch
Size: 7239 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190704/521fa92d/attachment.bin>
More information about the llvm-commits
mailing list