[PATCH] D91391: [PowerPC] Fix for excessive ACC copies due to PHI nodes
Baptiste Saleil via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 12 14:03:21 PST 2020
bsaleil created this revision.
bsaleil added reviewers: nemanjai, saghir, PowerPC.
Herald added subscribers: llvm-commits, shchenz, kbarton, hiraditya.
Herald added a project: LLVM.
bsaleil requested review of this revision.
When using accumulators in loops, they are passed around in PHI nodes of unprimed accumulators, causing the generation of additional
prime/unprime instructions. This patch detects these cases and changes these PHI nodes to primed accumulator PHI nodes.
We also add IR and MIR test cases for several PHI node cases.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D91391
Files:
llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
llvm/test/CodeGen/PowerPC/mma-intrinsics.ll
llvm/test/CodeGen/PowerPC/mma-phi-accs.ll
llvm/test/CodeGen/PowerPC/peephole-phi-acc.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91391.304970.patch
Type: text/x-patch
Size: 57264 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201112/4a23fa4a/attachment.bin>
More information about the llvm-commits
mailing list