Expand subregisters in MachineFrameInfo::getPristineRegs

http://reviews.llvm.org/D14719

llvm-svn: 253600
This commit is contained in:
Krzysztof Parzyszek 2015-11-19 21:18:52 +00:00
parent f4ede21328
commit 6e05972587

View File

@ -620,10 +620,9 @@ BitVector MachineFrameInfo::getPristineRegs(const MachineFunction &MF) const {
BV.set(*CSR);
// Saved CSRs are not pristine.
const std::vector<CalleeSavedInfo> &CSI = getCalleeSavedInfo();
for (std::vector<CalleeSavedInfo>::const_iterator I = CSI.begin(),
E = CSI.end(); I != E; ++I)
BV.reset(I->getReg());
for (auto &I : getCalleeSavedInfo())
for (MCSubRegIterator S(I.getReg(), TRI, true); S.isValid(); ++S)
BV.reset(*S);
return BV;
}