[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
This commit is contained in:
Joseph Tremoulet 2016-02-05 01:42:52 +00:00
parent eb4b58f6ce
commit adc2376375
1 changed files with 4 additions and 5 deletions

View File

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