[PATCH] D97658: [PowerPC] Reduce symmetrical swaps for lane-insensitive vector ops

Qiu Chaofan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 9 23:28:57 PST 2021


qiucf marked an inline comment as done.
qiucf added inline comments.


================
Comment at: llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp:6789
+  // Our desired xxswap might be source of COPY_TO_REGCLASS.
+  auto SkipRCCopy = [](SDValue V) {
+    while (V->isMachineOpcode() &&
----------------
nemanjai wrote:
> Is there not an equivalent of `lookThruCopyLike()` for SDAG?
I did not see such method in DAG level yet. Will leave a TODO here in case we need it again in the future.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D97658



More information about the llvm-commits mailing list