[PATCH] D131873: [PowerPC] Optimize compare by using record form in post-RA.
ChenZheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 5 00:48:54 PDT 2022
shchenz added a comment.
Look almost good to me now. Thanks for adding this folding.
================
Comment at: llvm/lib/Target/PowerPC/PPCInstrInfo.cpp:2791
+
+ // Rotates with record form are expensive instructions.
+ int SrcMIOpc = SrcMI->getOpcode();
----------------
Have you seen any perf impact due to this pattern? If so, there are many other record form rotate and shift instructions on PowerPC target, like RLDICL/RLDICR(not complete.)
================
Comment at: llvm/lib/Target/PowerPC/PPCInstrInfo.cpp:2822
+ // Fix up killed/dead flag for SrcReg after transformation.
+ if (OtherUse_SrcReg || CmpMI.getOperand(1).isKill())
+ fixupIsDeadOrKill(SrcMI, &CmpMI, SrcReg);
----------------
Can we add a MIR case for this?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131873/new/
https://reviews.llvm.org/D131873
More information about the llvm-commits
mailing list