diff options
| author | Tobias Grosser <grosser@fim.uni-passau.de> | 2011-08-20 11:11:14 +0000 |
|---|---|---|
| committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2011-08-20 11:11:14 +0000 |
| commit | eec4d56e63acccf6df09fe33c40a055db47a004f (patch) | |
| tree | bc0b702c415f7d6dd71ff683dde3285efb6937c5 | |
| parent | fbd46b073688f883f030fdd22d079a0c6123b76a (diff) | |
| download | bcm5719-llvm-eec4d56e63acccf6df09fe33c40a055db47a004f.tar.gz bcm5719-llvm-eec4d56e63acccf6df09fe33c40a055db47a004f.zip | |
Move common code into the function it belongs to
llvm-svn: 138202
| -rw-r--r-- | polly/lib/Analysis/ScopInfo.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/polly/lib/Analysis/ScopInfo.cpp b/polly/lib/Analysis/ScopInfo.cpp index 9c0e44c6b53..91a8ea281a7 100644 --- a/polly/lib/Analysis/ScopInfo.cpp +++ b/polly/lib/Analysis/ScopInfo.cpp @@ -279,6 +279,7 @@ static void replace(std::string& str, const std::string& find, } static void makeIslCompatible(std::string& str) { + str.erase(0, 1); replace(str, ".", "_"); replace(str, "\"", "_"); } @@ -288,8 +289,6 @@ void MemoryAccess::setBaseName() { 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 @@ ScopStmt::ScopStmt(Scop &parent, TempScop &tempScop, 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; |

