[PATCH] D132561: [Sparc] Mark the g0 register as constant
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 18 15:43:48 PST 2022
arsenm added a comment.
Test would be nice
================
Comment at: llvm/lib/Target/Sparc/SparcRegisterInfo.td:130
+let isConstant = true in
def G0 : Ri< 0, "G0">, DwarfRegNum<[0]>;
def G1 : Ri< 1, "G1">, DwarfRegNum<[1]>;
----------------
I think if you only want this to be G0, it's clearer to do:
```
def G0 ... {
let isConstant = true
}
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132561/new/
https://reviews.llvm.org/D132561
More information about the llvm-commits
mailing list