[PATCH] D158704: [PowerPC] Implement SchedModel for Power7

ChenZheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 12 22:16:24 PDT 2023


shchenz accepted this revision as: shchenz.
shchenz added a comment.
This revision is now accepted and ready to land.

LGTM with a small fix in one LIT.

I assume 1: you fixed all the LIT failures except the auto generated cases(the summary of the patch needs update). 2: you checked that the performance impact of this patch is positive for -mcpu=pwr7.



================
Comment at: llvm/lib/Target/PowerPC/PPCScheduleP7.td:33
+                             PairedVectorMemops, IsISA3_0,
+                             PCRelativeMemops, IsISA3_1, IsISAFuture];
 }
----------------
shchenz wrote:
> What rules do we take to add unsupported features here? I believe we are missing lots of CPU features defined in PPC.td.
hmm, OK, let use this setting for now. I think we may need a similar approach in SystemZ arch. That's more clear and robust.


================
Comment at: llvm/test/CodeGen/PowerPC/aix-vector-stack-caller.ll:85
 declare i32 @vec_callee_stack(...)
+;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
+; LITERAL: {{.*}}
----------------
Fix the broken case.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D158704



More information about the llvm-commits mailing list