ScheduleOptimizer: Use early exit

Style fix, noted by Sebastian Pop.

llvm-svn: 144898
This commit is contained in:
Tobias Grosser 2011-11-17 12:56:00 +00:00
parent 74793710c1
commit 79b30201d6
1 changed files with 9 additions and 10 deletions

View File

@ -207,7 +207,9 @@ isl_union_map *getTiledPartialSchedule(isl_band *band) {
partialSchedule = isl_band_get_partial_schedule(band);
if (!DisableTiling) {
if (DisableTiling)
return partialSchedule;
ctx = isl_union_map_get_ctx(partialSchedule);
Space = isl_union_map_get_space(partialSchedule);
scheduleDimensions = isl_band_n_member(band);
@ -215,10 +217,7 @@ isl_union_map *getTiledPartialSchedule(isl_band *band) {
tileMap = getTileMap(ctx, scheduleDimensions, Space);
tileUnionMap = isl_union_map_from_map(isl_map_from_basic_map(tileMap));
tileUnionMap = isl_union_map_align_params(tileUnionMap, Space);
partialSchedule = isl_union_map_apply_range(partialSchedule, tileUnionMap);
}
return partialSchedule;
return isl_union_map_apply_range(partialSchedule, tileUnionMap);
}
static isl_map *getPrevectorMap(isl_ctx *ctx, int vectorDimension,