[PATCH] D95458: [PowerPC] Exploit xxsplti32dx (constant materialization) for scalars
Albion Fung via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 26 10:35:20 PST 2021
Conanap created this revision.
Conanap added reviewers: nemanjai, saghir, PowerPC.
Conanap added projects: LLVM, clang, PowerPC.
Herald added a subscriber: kbarton.
Conanap requested review of this revision.
Previously related differential (exploit xxsplti32dx for vectors) here: https://reviews.llvm.org/D90173
This patch exploits the xxsplti32dx instruction available on Power10 in place of constant pool loads where xxspltidp would not be able to, usually because the immediate cannot fit into 32 bits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D95458
Files:
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCISelLowering.h
llvm/lib/Target/PowerPC/PPCInstrInfo.td
llvm/lib/Target/PowerPC/PPCInstrPrefix.td
llvm/test/CodeGen/PowerPC/constant-pool.ll
llvm/test/CodeGen/PowerPC/p10-splatImm-CPload-pcrel.ll
llvm/test/CodeGen/PowerPC/pcrel-call-linkage-leaf.ll
llvm/test/CodeGen/PowerPC/pcrel-linkeropt.ll
llvm/test/CodeGen/PowerPC/pcrel.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95458.319343.patch
Type: text/x-patch
Size: 16466 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210126/af5a9a5f/attachment.bin>
More information about the llvm-commits
mailing list