[PATCH] D139193: [PowerPC] remove XXSWAPD after vector splat immediate
Ting Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 11 21:59:02 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0bcef1d93de8: [PowerPC] remove XXSWAPD after vector splat immediate (authored by tingwang).
Changed prior to commit:
https://reviews.llvm.org/D139193?vs=479599&id=539373#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139193/new/
https://reviews.llvm.org/D139193
Files:
llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
Index: llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
===================================================================
--- llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
+++ llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
@@ -657,12 +657,14 @@
LLVM_DEBUG(MI.dump());
} else if (Immed == 2 &&
(DefOpc == PPC::VSPLTB || DefOpc == PPC::VSPLTH ||
- DefOpc == PPC::VSPLTW || DefOpc == PPC::XXSPLTW)) {
+ DefOpc == PPC::VSPLTW || DefOpc == PPC::XXSPLTW ||
+ DefOpc == PPC::VSPLTISB || DefOpc == PPC::VSPLTISH ||
+ DefOpc == PPC::VSPLTISW)) {
// Swap of various vector splats, convert to copy.
ToErase = &MI;
Simplified = true;
- LLVM_DEBUG(dbgs() << "Optimizing swap(vsplt[b|h|w]|xxspltw) => "
- "copy(vsplt[b|h|w]|xxspltw): ");
+ LLVM_DEBUG(dbgs() << "Optimizing swap(vsplt(is)?[b|h|w]|xxspltw) => "
+ "copy(vsplt(is)?[b|h|w]|xxspltw): ");
LLVM_DEBUG(MI.dump());
BuildMI(MBB, &MI, MI.getDebugLoc(), TII->get(PPC::COPY),
MI.getOperand(0).getReg())
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139193.539373.patch
Type: text/x-patch
Size: 1197 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230712/d3d2ecaf/attachment.bin>
More information about the llvm-commits
mailing list