[llvm-commits] [polly] r138202 - /polly/trunk/lib/Analysis/ScopInfo.cpp
Tobias Grosser
grosser at fim.uni-passau.de
Sat Aug 20 04:11:14 PDT 2011
Author: grosser
Date: Sat Aug 20 06:11:14 2011
New Revision: 138202
URL: http://llvm.org/viewvc/llvm-project?rev=138202&view=rev
Log:
Move common code into the function it belongs to
Modified:
polly/trunk/lib/Analysis/ScopInfo.cpp
Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=138202&r1=138201&r2=138202&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Sat Aug 20 06:11:14 2011
@@ -279,6 +279,7 @@
}
static void makeIslCompatible(std::string& str) {
+ str.erase(0, 1);
replace(str, ".", "_");
replace(str, "\"", "_");
}
@@ -288,8 +289,6 @@
WriteAsOperand(OS, getBaseAddr(), false);
BaseName = OS.str();
- // Remove the % in the name. This is not supported by isl.
- BaseName.erase(0,1);
makeIslCompatible(BaseName);
BaseName = "MemRef_" + BaseName;
}
@@ -689,8 +688,6 @@
WriteAsOperand(OS, &bb, false);
BaseName = OS.str();
- // Remove the % in the name. This is not supported by isl.
- BaseName.erase(0, 1);
makeIslCompatible(BaseName);
BaseName = "Stmt_" + BaseName;
More information about the llvm-commits
mailing list