[PATCH] D69497: [PowerPC] Fix MI peephole optimization for splats

Colin Samples via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 30 08:15:22 PDT 2019


vddvss added inline comments.


================
Comment at: llvm/test/CodeGen/PowerPC/load-shuffle-and-shuffle-store.ll:399
 ; CHECK-P8:       # %bb.0:
-; CHECK-P8-NEXT:    stxvd2x v2, 0, r7
+; CHECK-P8-NEXT:    xxswapd v2, v2
+; CHECK-P8-NEXT:    xxswapd vs0, v2
----------------
lkail wrote:
> Maybe we can enhance it by checking if `DefMI->getOperand(1).getReg()` and `DefMI->getOperand(2).getReg()` are VRegs and are equal, before invoking `lookThruCopyLike`.
So that does work, although at the cost of some added complexity. I will upload a new revision shortly.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D69497





More information about the llvm-commits mailing list