[PATCH] D139691: [PowerPC] add a peephole to remove redundant swap instructions after vector splats on P8

ChenZheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 13 17:46:33 PST 2022


shchenz added inline comments.


================
Comment at: llvm/lib/Target/PowerPC/PPCMIPeephole.cpp:647
           LLVM_DEBUG(MI.dump());
+        } else if (Immed == 2 &&
+                   (DefOpc == PPC::VSPLTB || DefOpc == PPC::VSPLTH ||
----------------
Can this branch be merged to the above one at line 627? Splat a double word and the double word is a splat of a small unit should also can be removed?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D139691



More information about the llvm-commits mailing list