[PATCH] D91386: [PowerPC] Add peephole to remove redundant accumulator prime/unprime instructions
Baptiste Saleil via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 12 13:25:18 PST 2020
bsaleil created this revision.
bsaleil added reviewers: nemanjai, saghir, PowerPC.
bsaleil added projects: LLVM, PowerPC.
Herald added subscribers: llvm-commits, shchenz, kbarton, hiraditya.
bsaleil requested review of this revision.
In some situations, the compiler may insert an accumulator prime instruction and an accumulator unprime instruction with no use of that accumulator between the two.
That's for example the case when we store an accumulator after assembling it or restoring it. This patch adds a peephole to remove these prime and unprime instructions.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D91386
Files:
llvm/lib/Target/PowerPC/PPCPreEmitPeephole.cpp
llvm/test/CodeGen/PowerPC/mma-acc-memops.ll
llvm/test/CodeGen/PowerPC/mma-intrinsics.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91386.304949.patch
Type: text/x-patch
Size: 9094 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201112/411b4f64/attachment.bin>
More information about the llvm-commits
mailing list