[PATCH] D14719: Expand subregisters in MachineFrameInfo::getPristineRegs

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 18 13:02:01 PST 2015


kparzysz updated this revision to Diff 40546.
kparzysz added a comment.

Delete unused declaration.


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
@@ -620,10 +620,9 @@
     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;
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14719.40546.patch
Type: text/x-patch
Size: 610 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151118/e85df9bf/attachment.bin>


More information about the llvm-commits mailing list