mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-11 07:18:44 +00:00
Expand subregisters in MachineFrameInfo::getPristineRegs
http://reviews.llvm.org/D14719 llvm-svn: 253600
This commit is contained in:
parent
f4ede21328
commit
6e05972587
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user