summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2015-11-19 21:18:52 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2015-11-19 21:18:52 +0000
commitdf537b97b13e1816463490e07a191d451cc45557 (patch)
treee86b4d7f42623c46c9877307bfe343033c433772 /llvm/lib/CodeGen
parent0cf8c0468d3cb69f6de72df382a2be270d4b22f6 (diff)
downloadbcm5719-llvm-df537b97b13e1816463490e07a191d451cc45557.tar.gz
bcm5719-llvm-df537b97b13e1816463490e07a191d451cc45557.zip
Expand subregisters in MachineFrameInfo::getPristineRegs
http://reviews.llvm.org/D14719 llvm-svn: 253600
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index 7e4c9b779f2..7e6af1c9c41 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -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;
}
OpenPOWER on IntegriCloud