diff options
author | Hongbin Zheng <etherzhhb@gmail.com> | 2016-03-03 08:15:33 +0000 |
---|---|---|
committer | Hongbin Zheng <etherzhhb@gmail.com> | 2016-03-03 08:15:33 +0000 |
commit | 2a798853f86061ee34b3fa953560955164e370d3 (patch) | |
tree | 8b58acb4caff8f85a5eb2923db133fb1e0d3991a /polly/lib/Transform/DeadCodeElimination.cpp | |
parent | 4cfe572932ddb35dc91d4c241e41205543479b17 (diff) | |
download | bcm5719-llvm-2a798853f86061ee34b3fa953560955164e370d3.tar.gz bcm5719-llvm-2a798853f86061ee34b3fa953560955164e370d3.zip |
Allow the client of DependenceInfo to obtain dependences at different granularities.
llvm-svn: 262591
Diffstat (limited to 'polly/lib/Transform/DeadCodeElimination.cpp')
-rw-r--r-- | polly/lib/Transform/DeadCodeElimination.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/polly/lib/Transform/DeadCodeElimination.cpp b/polly/lib/Transform/DeadCodeElimination.cpp index f8374d693aa..4fe6317e69f 100644 --- a/polly/lib/Transform/DeadCodeElimination.cpp +++ b/polly/lib/Transform/DeadCodeElimination.cpp @@ -115,7 +115,7 @@ isl_union_set *DeadCodeElim::getLiveOut(Scop &S) { /// simplifies the life set with an affine hull. bool DeadCodeElim::eliminateDeadCode(Scop &S, int PreciseSteps) { DependenceInfo &DI = getAnalysis<DependenceInfo>(); - const Dependences &D = DI.getDependences(); + const Dependences &D = DI.getDependences(Dependences::AL_Statement); if (!D.hasValidDependences()) return false; @@ -159,7 +159,7 @@ bool DeadCodeElim::eliminateDeadCode(Scop &S, int PreciseSteps) { // FIXME: We can probably avoid the recomputation of all dependences by // updating them explicitly. if (Changed) - DI.recomputeDependences(); + DI.recomputeDependences(Dependences::AL_Statement); return Changed; } |