search for: setregallocationhint

Displaying 1 result from an estimated 1 matches for "setregallocationhint".

Did you mean: getregallocationhints
2010 Sep 13
2
[LLVMdev] Multi-class register allocatable only in one class
...where src was allocated to register A will make dst be allocated also to A, even when it was defined as not allocatable in .td files. This is due to the checking in RegAllocLinearScan:1004 if (Reg && allocatableRegs_[Reg] && RC->contains(Reg)) mri_->setRegAllocationHint(cur->reg, 0, Reg); where "allocatableRegs_" is calculated during pass init, and ignores register class. I think this should be changed to: if (Reg && (tri_->getAllocatableSet(*mf_, RC))[Reg] && RC- >contains(Reg)) mri_->setRegAlloc...