ScheduleOpt: Only get RAW dependences if we asked for raw

llvm-svn: 150574
This commit is contained in:
Tobias Grosser 2012-02-15 09:58:42 +00:00
parent 1e7e2370aa
commit 1e03ad7213
1 changed files with 1 additions and 2 deletions

View File

@ -431,8 +431,7 @@ bool IslScheduleOptimizer::runOnScop(Scop &S) {
ProximityKinds = Dependences::TYPE_RAW | Dependences::TYPE_WAR
| Dependences::TYPE_WAW;
else if (OptimizeDeps == "raw")
ProximityKinds = Dependences::TYPE_RAW | Dependences::TYPE_WAR
| Dependences::TYPE_WAW;
ProximityKinds = Dependences::TYPE_RAW;
else {
errs() << "Do not know how to optimize for '" << OptimizeDeps << "'"
<< " Falling back to optimizing all dependences.\n";