A new instructon on Power 10 allows for the materialization of 34 bit
immediate values. This patch allows the compiler to take advantage of
the new instruction in this situation.
Details
Details
- Reviewers
nemanjai lei NeHuang amyk - Group Reviewers
Restricted Project - Commits
- rG288f762b6ff2: [PowerPC] Materialize 34 bit constants with pli on Power 10.
NOTE: This patch was originally written by Anil Mahmud. His code has been
rebased but otherwise left mostly unchanged.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
I just have a minor nit, but overall it looks good to me.
llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp | ||
---|---|---|
1062 | nit: I think the preference is to name this as Subtarget rather than PPCSubTarget (As seen in https://reviews.llvm.org/D81623) |
Comment Actions
Thanks for updating. I just noticed one more minor nit.
llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp | ||
---|---|---|
1038 | s/meterialize/materialize |
doc.