aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2014-10-29 22:09:54 +0000
committerTobias Grosser <tobias@grosser.es>2014-10-29 22:09:54 +0000
commitab23c9e724bd18c0c78c2b03d337af9ececc1664 (patch)
treedc2c04d7456bb91311061d5b64a0a786d8a55bf7
parentb28ed015ce7d2a873716307d9a63301a93e53415 (diff)
downloadllvm-ab23c9e724bd18c0c78c2b03d337af9ececc1664.zip
llvm-ab23c9e724bd18c0c78c2b03d337af9ececc1664.tar.gz
llvm-ab23c9e724bd18c0c78c2b03d337af9ececc1664.tar.bz2
Delete some unnecessary code
Originally we have needed this code to map the isl_id of an array to its base pointer. However, as now the isl_id contains a reference to the array itself we obtain the base pointer from this isl_id and we do not need to add this information to the IDToValue map. llvm-svn: 220876
-rw-r--r--polly/lib/CodeGen/IslCodeGeneration.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/polly/lib/CodeGen/IslCodeGeneration.cpp b/polly/lib/CodeGen/IslCodeGeneration.cpp
index 004544c..bf9a81e 100644
--- a/polly/lib/CodeGen/IslCodeGeneration.cpp
+++ b/polly/lib/CodeGen/IslCodeGeneration.cpp
@@ -64,8 +64,6 @@ public:
~IslNodeBuilder() { delete Rewriter; }
- /// @brief Add the mappings from array id's to array llvm::Value's.
- void addMemoryAccesses(Scop &S);
void addParameters(__isl_take isl_set *Context);
void create(__isl_take isl_ast_node *Node);
IslExprBuilder &getExprBuilder() { return ExprBuilder; }
@@ -561,15 +559,6 @@ void IslNodeBuilder::addParameters(__isl_take isl_set *Context) {
isl_set_free(Context);
}
-void IslNodeBuilder::addMemoryAccesses(Scop &S) {
- for (ScopStmt *Stmt : S)
- for (MemoryAccess *MA : *Stmt) {
- isl_id *Id = MA->getArrayId();
- IDToValue[Id] = MA->getBaseAddr();
- isl_id_free(Id);
- }
-}
-
namespace {
class IslCodeGeneration : public ScopPass {
public:
@@ -620,7 +609,6 @@ public:
PollyIRBuilder Builder = createPollyIRBuilder(EnteringBB, Annotator);
IslNodeBuilder NodeBuilder(Builder, Annotator, this, *LI, *SE, *DT);
- NodeBuilder.addMemoryAccesses(S);
NodeBuilder.addParameters(S.getContext());
Value *RTC = buildRTC(Builder, NodeBuilder.getExprBuilder());