mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-05 00:59:19 +00:00
constify accessor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104325 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
19f5f71bba
commit
65569b8ddf
@ -216,7 +216,8 @@ public:
|
|||||||
|
|
||||||
/// getRegClassVirtRegs - Return the list of virtual registers of the given
|
/// getRegClassVirtRegs - Return the list of virtual registers of the given
|
||||||
/// target register class.
|
/// target register class.
|
||||||
std::vector<unsigned> &getRegClassVirtRegs(const TargetRegisterClass *RC) {
|
const std::vector<unsigned> &
|
||||||
|
getRegClassVirtRegs(const TargetRegisterClass *RC) const {
|
||||||
return RegClass2VRegMap[RC->getID()];
|
return RegClass2VRegMap[RC->getID()];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1154,7 +1154,7 @@ PreAllocSplitting::SplitRegLiveIntervals(const TargetRegisterClass **RCs,
|
|||||||
// codegen is not modelling. Ignore these barriers for now.
|
// codegen is not modelling. Ignore these barriers for now.
|
||||||
if (!TII->isSafeToMoveRegClassDefs(*RC))
|
if (!TII->isSafeToMoveRegClassDefs(*RC))
|
||||||
continue;
|
continue;
|
||||||
std::vector<unsigned> &VRs = MRI->getRegClassVirtRegs(*RC);
|
const std::vector<unsigned> &VRs = MRI->getRegClassVirtRegs(*RC);
|
||||||
for (unsigned i = 0, e = VRs.size(); i != e; ++i) {
|
for (unsigned i = 0, e = VRs.size(); i != e; ++i) {
|
||||||
unsigned Reg = VRs[i];
|
unsigned Reg = VRs[i];
|
||||||
if (!LIs->hasInterval(Reg))
|
if (!LIs->hasInterval(Reg))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user