This adds an implementation of isConstantPhysReg().
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Test would be nice
llvm/lib/Target/Sparc/SparcRegisterInfo.td | ||
---|---|---|
130 | I think if you only want this to be G0, it's clearer to do: def G0 ... { let isConstant = true } |
Comment Actions
I have zero interest and knowledge of sparc, so I'm not sure how to write a test.
I only opened this review because it was pointed out in the review that added isConstant to tablegen. Happy to let someone else pick this up.
I think if you only want this to be G0, it's clearer to do: