diff --git a/polly/lib/CodeGen/BlockGenerators.cpp b/polly/lib/CodeGen/BlockGenerators.cpp index 08c330970710..228a0c6ff41d 100644 --- a/polly/lib/CodeGen/BlockGenerators.cpp +++ b/polly/lib/CodeGen/BlockGenerators.cpp @@ -1039,11 +1039,6 @@ void RegionGenerator::copyStmt(ScopStmt &Stmt, LoopToScevMapT <S, LTS[L] = SE.getUnknown(LoopPHI); } - // Add all mappings from the region to the global map so outside uses will use - // the copied instructions. - for (auto &BBMap : RegionMaps) - GlobalMap.insert(BBMap.second.begin(), BBMap.second.end()); - // Reset the old insert point for the build. Builder.SetInsertPoint(ExitBBCopy->begin()); }