[llvm-commits] [polly] r144898 - /polly/trunk/lib/ScheduleOptimizer.cpp
Tobias Grosser
grosser at fim.uni-passau.de
Thu Nov 17 04:56:00 PST 2011
Author: grosser
Date: Thu Nov 17 06:56:00 2011
New Revision: 144898
URL: http://llvm.org/viewvc/llvm-project?rev=144898&view=rev
Log:
ScheduleOptimizer: Use early exit
Style fix, noted by Sebastian Pop.
Modified:
polly/trunk/lib/ScheduleOptimizer.cpp
Modified: polly/trunk/lib/ScheduleOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/ScheduleOptimizer.cpp?rev=144898&r1=144897&r2=144898&view=diff
==============================================================================
--- polly/trunk/lib/ScheduleOptimizer.cpp (original)
+++ polly/trunk/lib/ScheduleOptimizer.cpp Thu Nov 17 06:56:00 2011
@@ -207,18 +207,17 @@
partialSchedule = isl_band_get_partial_schedule(band);
- if (!DisableTiling) {
- ctx = isl_union_map_get_ctx(partialSchedule);
- Space= isl_union_map_get_space(partialSchedule);
- scheduleDimensions = isl_band_n_member(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);
- }
+ if (DisableTiling)
+ return partialSchedule;
- return partialSchedule;
+ ctx = isl_union_map_get_ctx(partialSchedule);
+ Space = isl_union_map_get_space(partialSchedule);
+ scheduleDimensions = isl_band_n_member(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);
+ return isl_union_map_apply_range(partialSchedule, tileUnionMap);
}
static isl_map *getPrevectorMap(isl_ctx *ctx, int vectorDimension,
More information about the llvm-commits
mailing list