[PATCH] D16911: [RS4GC] Pass DenseMap by reference, NFC

Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 4 17:47:01 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL259867: [RS4GC] Pass DenseMap by reference, NFC (authored by josepht).

Changed prior to commit:
  http://reviews.llvm.org/D16911?vs=46983&id=46987#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D16911

Files:
  llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

Index: llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
===================================================================
--- llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
+++ llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
@@ -1617,11 +1617,10 @@
 
 // Helper function for the "relocationViaAlloca". Similar to the
 // "insertRelocationStores" but works for rematerialized values.
-static void
-insertRematerializationStores(
-  RematerializedValueMapTy RematerializedValues,
-  DenseMap<Value *, Value *> &AllocaMap,
-  DenseSet<Value *> &VisitedLiveValues) {
+static void insertRematerializationStores(
+    const RematerializedValueMapTy &RematerializedValues,
+    DenseMap<Value *, Value *> &AllocaMap,
+    DenseSet<Value *> &VisitedLiveValues) {
 
   for (auto RematerializedValuePair: RematerializedValues) {
     Instruction *RematerializedValue = RematerializedValuePair.first;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16911.46987.patch
Type: text/x-patch
Size: 931 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160205/054d8ea6/attachment.bin>


More information about the llvm-commits mailing list