[PATCH] D89855: [PowerPC] Extend folding RLWINM + RLWINM to post-RA.
EsmeYi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 10 23:39:44 PST 2020
Esme updated this revision to Diff 304410.
Esme added a comment.
In post-RA, if SrcMI also defines the register to be forwarded, we can only do the folding if SrcMI is going to be erased.
For example, SrcMI and MI can't not be folded in the scenario:
$r3 = RLWINM_rec $r3, 27, 5, 10, implicit-def $cr0
dead renamable $r3 = RLWINM_rec killed renamable $r3, 8, 5, 10, implicit-def $cr0
BLR8 implicit $lr8, implicit $rm, implicit killed $cr0
I've run the bootstrap-test as well as SEPC.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89855/new/
https://reviews.llvm.org/D89855
Files:
llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
llvm/lib/Target/PowerPC/PPCInstrInfo.h
llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
llvm/lib/Target/PowerPC/PPCPreEmitPeephole.cpp
llvm/test/CodeGen/PowerPC/fold-rlwinm-after-ra.mir
llvm/test/CodeGen/PowerPC/vsx_builtins.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89855.304410.patch
Type: text/x-patch
Size: 11185 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201111/9dd07dd7/attachment.bin>
More information about the llvm-commits
mailing list