[clang] [llvm] [PowerPC] Add support for -mcpu=pwr11 / -mtune=pwr11 (PR #99511)
Chen Zheng via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 22 19:58:25 PDT 2024
================
@@ -3485,9 +3485,11 @@ unsigned PPCInstrInfo::getSpillTarget() const {
// With P10, we may need to spill paired vector registers or accumulator
// registers. MMA implies paired vectors, so we can just check that.
bool IsP10Variant = Subtarget.isISA3_1() || Subtarget.pairedVectorMemops();
- return Subtarget.isISAFuture() ? 3 : IsP10Variant ?
- 2 : Subtarget.hasP9Vector() ?
- 1 : 0;
+ // P11 uses the P10 target.
+ return Subtarget.isISAFuture() ? 3
----------------
chenzheng1030 wrote:
nit: is this formatted by clang-format? Maybe we should not change these lines as you are not changing them.
https://github.com/llvm/llvm-project/pull/99511
More information about the cfe-commits
mailing list