[PATCH] D14719: Expand subregisters in MachineFrameInfo::getPristineRegs
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 18 12:59:31 PST 2015
kparzysz retitled this revision from "Track pristine registers in terms of register units." to "Expand subregisters in MachineFrameInfo::getPristineRegs".
kparzysz updated the summary for this revision.
kparzysz updated this revision to Diff 40544.
kparzysz added a comment.
New version, as per the discussion
Repository:
rL LLVM
http://reviews.llvm.org/D14719
Files:
lib/CodeGen/MachineFunction.cpp
Index: lib/CodeGen/MachineFunction.cpp
===================================================================
--- lib/CodeGen/MachineFunction.cpp
+++ lib/CodeGen/MachineFunction.cpp
@@ -621,9 +621,9 @@
// 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;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14719.40544.patch
Type: text/x-patch
Size: 590 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151118/5235a499/attachment.bin>
More information about the llvm-commits
mailing list