[llvm-branch-commits] [polly] r183381 - add comments to clarify the use of a temporary variable in the map insertion
Tobias Grosser
grosser at fim.uni-passau.de
Wed Jun 5 19:49:29 PDT 2013
Author: grosser
Date: Wed Jun 5 21:48:42 2013
New Revision: 183381
URL: http://llvm.org/viewvc/llvm-project?rev=183381&view=rev
Log:
add comments to clarify the use of a temporary variable in the map insertion
Merged from: https://llvm.org/svn/llvm-project/polly/trunk@182662
Modified:
polly/branches/release_33/lib/CodeGen/BlockGenerators.cpp
Modified: polly/branches/release_33/lib/CodeGen/BlockGenerators.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/branches/release_33/lib/CodeGen/BlockGenerators.cpp?rev=183381&r1=183380&r2=183381&view=diff
==============================================================================
--- polly/branches/release_33/lib/CodeGen/BlockGenerators.cpp (original)
+++ polly/branches/release_33/lib/CodeGen/BlockGenerators.cpp Wed Jun 5 21:48:42 2013
@@ -356,12 +356,16 @@ void BlockGenerator::copyInstruction(con
if (const LoadInst *Load = dyn_cast<LoadInst>(Inst)) {
Value *NewLoad = generateScalarLoad(Load, BBMap, GlobalMap, LTS);
+ // Compute NewLoad before its insertion in BBMap to make the insertion
+ // deterministic.
BBMap[Load] = NewLoad;
return;
}
if (const StoreInst *Store = dyn_cast<StoreInst>(Inst)) {
Value *NewStore = generateScalarStore(Store, BBMap, GlobalMap, LTS);
+ // Compute NewStore before its insertion in BBMap to make the insertion
+ // deterministic.
BBMap[Store] = NewStore;
return;
}
More information about the llvm-branch-commits
mailing list