File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1849,3 +1849,16 @@ MCPhysReg SIRegisterInfo::get32BitRegister(MCPhysReg Reg) const {
1849
1849
1850
1850
return AMDGPU::NoRegister;
1851
1851
}
1852
+
1853
+ bool SIRegisterInfo::isConstantPhysReg (MCRegister PhysReg) const {
1854
+ switch (PhysReg) {
1855
+ case AMDGPU::SGPR_NULL:
1856
+ case AMDGPU::SRC_SHARED_BASE:
1857
+ case AMDGPU::SRC_PRIVATE_BASE:
1858
+ case AMDGPU::SRC_SHARED_LIMIT:
1859
+ case AMDGPU::SRC_PRIVATE_LIMIT:
1860
+ return true ;
1861
+ default :
1862
+ return false ;
1863
+ }
1864
+ }
Original file line number Diff line number Diff line change @@ -210,6 +210,8 @@ class SIRegisterInfo final : public AMDGPUGenRegisterInfo {
210
210
return isVGPR (MRI, Reg) || isAGPR (MRI, Reg);
211
211
}
212
212
213
+ bool isConstantPhysReg (MCRegister PhysReg) const override ;
214
+
213
215
bool isDivergentRegClass (const TargetRegisterClass *RC) const override {
214
216
return !isSGPRClass (RC);
215
217
}
You can’t perform that action at this time.
0 commit comments