Skip to content

Commit adc2376

Browse files
[RS4GC] Pass DenseMap by reference, NFC
Summary: Passing the rematerialized values map to insertRematerializationStores by value looks to be a simple oversight; update it to pass by reference. Reviewers: reames, sanjoy Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D16911 llvm-svn: 259867
1 parent eb4b58f commit adc2376

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

+4-5
Original file line numberDiff line numberDiff line change
@@ -1617,11 +1617,10 @@ insertRelocationStores(iterator_range<Value::user_iterator> GCRelocs,
16171617

16181618
// Helper function for the "relocationViaAlloca". Similar to the
16191619
// "insertRelocationStores" but works for rematerialized values.
1620-
static void
1621-
insertRematerializationStores(
1622-
RematerializedValueMapTy RematerializedValues,
1623-
DenseMap<Value *, Value *> &AllocaMap,
1624-
DenseSet<Value *> &VisitedLiveValues) {
1620+
static void insertRematerializationStores(
1621+
const RematerializedValueMapTy &RematerializedValues,
1622+
DenseMap<Value *, Value *> &AllocaMap,
1623+
DenseSet<Value *> &VisitedLiveValues) {
16251624

16261625
for (auto RematerializedValuePair: RematerializedValues) {
16271626
Instruction *RematerializedValue = RematerializedValuePair.first;

0 commit comments

Comments
 (0)