[PATCH] D69497: [PowerPC] Fix MI peephole optimization for splats
Kai Luo via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 30 02:31:04 PDT 2019
lkail 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
----------------
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`.
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