[PATCH] D94816: [P10] [Power PC] Exploiting new load rightmost vector element instructions.

Amy Kwan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 21 15:48:52 PST 2021


amyk added inline comments.


================
Comment at: llvm/lib/Target/PowerPC/PPCInstrVSX.td:3940
+let Predicates = [HasVSX, HasP9Vector, NoP10Vector] in {
+// Little endian Power10 subtargets produce a shorter pattern but require a
+// COPY_TO_REGCLASS making a faux equivalent pattern, NoP10Vector predicate
----------------
nit: End sentences with a period.


================
Comment at: llvm/lib/Target/PowerPC/PPCInstrVSX.td:3941
+// Little endian Power10 subtargets produce a shorter pattern but require a
+// COPY_TO_REGCLASS making a faux equivalent pattern, NoP10Vector predicate
+// excludes these patterns from Power10 VSX subtargets
----------------
Might be a silly question, but can you clarify the "faux equivalent pattern" part?
Also a small nit, maybe end the sentence here and start the next sentence with, "The NoP10Vector predicate..."


================
Comment at: llvm/test/CodeGen/PowerPC/load-rightmost-vector-elt.ll:8
+; RUN:     -mcpu=pwr10 -ppc-vsr-nums-as-vr -ppc-asm-full-reg-names \
+; RUN:     < %s | FileCheck %s --check-prefix=CHECK-BE
+
----------------
Add P9 run line, too?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D94816



More information about the llvm-commits mailing list