[polly] r182662 - add comments to clarify the use of a temporary variable in the map insertion

Sebastian Pop spop at codeaurora.org
Fri May 24 11:46:02 PDT 2013


Author: spop
Date: Fri May 24 13:46:02 2013
New Revision: 182662

URL: http://llvm.org/viewvc/llvm-project?rev=182662&view=rev
Log:
add comments to clarify the use of a temporary variable in the map insertion

Modified:
    polly/trunk/lib/CodeGen/BlockGenerators.cpp

Modified: polly/trunk/lib/CodeGen/BlockGenerators.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/BlockGenerators.cpp?rev=182662&r1=182661&r2=182662&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/BlockGenerators.cpp (original)
+++ polly/trunk/lib/CodeGen/BlockGenerators.cpp Fri May 24 13:46:02 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-commits mailing list