[PATCH] D106555: [PowerPC] handle more splat loads

ChenZheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 27 05:11:51 PDT 2021


shchenz marked 2 inline comments as done.
shchenz added inline comments.


================
Comment at: llvm/test/CodeGen/PowerPC/load-and-splat.ll:223
+; P7-NEXT:    lhzx r4, 0, r4
+; P7-NEXT:    mtvsrd v2, r4
+; P7-NEXT:    vsplth v2, v2, 3
----------------
nemanjai wrote:
> Definitely bad. P7 doesn't have direct moves.
For this case, now we use one more instruction than the left ones. But I think it should still be a win as we don't use the stack which is always good for some opts, like leaf calls related optimizations. And now it uses fewer memory operations 2 vs 3.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106555/new/

https://reviews.llvm.org/D106555



More information about the llvm-commits mailing list