diff options
author | Kai Nacke <kai@redstar.de> | 2022-08-16 21:34:43 -0400 |
---|---|---|
committer | Kai Nacke <kai@redstar.de> | 2022-11-13 11:07:47 -0500 |
commit | 827d771bf73298f566cfa47f22810118713aad9b (patch) | |
tree | a3b6e021eff3947b7d1d6af2042a9747e92df50c | |
parent | 1841662b170816742130c07fb2371cf48756dca2 (diff) | |
download | llvm-827d771bf73298f566cfa47f22810118713aad9b.zip llvm-827d771bf73298f566cfa47f22810118713aad9b.tar.gz llvm-827d771bf73298f566cfa47f22810118713aad9b.tar.bz2 |
[m88k] Mark %r0 and %x0 as constant.
Uses the new isConstant flag introduced by
https://reviews.llvm.org/D131962 to mark the
registers as constant..
-rw-r--r-- | llvm/lib/Target/M88k/M88kRegisterInfo.td | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/M88k/M88kRegisterInfo.td b/llvm/lib/Target/M88k/M88kRegisterInfo.td index ed217577..6b0bc16 100644 --- a/llvm/lib/Target/M88k/M88kRegisterInfo.td +++ b/llvm/lib/Target/M88k/M88kRegisterInfo.td @@ -43,7 +43,8 @@ let Namespace = "M88k" in { // General-purpose registers foreach I = 0-31 in { - def R#I : M88kReg<I, "r"#I>; + let isConstant = !eq(I, 0) in + def R#I : M88kReg<I, "r"#I>; } // Register pairs. @@ -76,7 +77,8 @@ defm GPR64 : M88kRegisterClass<[i64, f64, v8i8, v4i16, v2i32], 64, 32, // Extended (floating point) registers. foreach I = 0-31 in { - def X#I : M88kReg<I, "x"#I>; + let isConstant = !eq(I, 0) in + def X#I : M88kReg<I, "x"#I>; } defm XR : M88kRegisterClass<[f32, f64, f80], 128, 32, |