Index: include/polly/ScopInfo.h =================================================================== --- include/polly/ScopInfo.h +++ include/polly/ScopInfo.h @@ -2338,7 +2338,10 @@ std::pair getEntryExitStr() const; /// Get the name of this Scop. - std::string getNameStr() const; + std::string getNameStr() const { return name; } + + /// Get the name of this Scop with it updated boundaries + std::string getCurrentNameStr() const; /// Get the constraint on parameter of this Scop. /// Index: lib/Analysis/ScopInfo.cpp =================================================================== --- lib/Analysis/ScopInfo.cpp +++ lib/Analysis/ScopInfo.cpp @@ -3425,7 +3425,7 @@ Scop::Scop(Region &R, ScalarEvolution &ScalarEvolution, LoopInfo &LI, ScopDetection::DetectionContext &DC) - : SE(&ScalarEvolution), R(R), name(R.getNameStr()), IsOptimized(false), + : SE(&ScalarEvolution), R(R), name(getCurrentNameStr()), IsOptimized(false), HasSingleExitEdge(R.getExitingBlock()), HasErrorBlock(false), MaxLoopDepth(0), CopyStmtsNum(0), DC(DC), IslCtx(isl_ctx_alloc(), isl_ctx_free), Context(nullptr), @@ -4124,7 +4124,7 @@ return stringFromIslObj(InvalidContext); } -std::string Scop::getNameStr() const { +std::string Scop::getCurrentNameStr() const { std::string ExitName, EntryName; std::tie(EntryName, ExitName) = getEntryExitStr(); return EntryName + "---" + ExitName;