[polly] r234125 - Make -polly-no-tiling work again
Tobias Grosser
tobias at grosser.es
Sun Apr 5 14:52:21 PDT 2015
Author: grosser
Date: Sun Apr 5 16:52:21 2015
New Revision: 234125
URL: http://llvm.org/viewvc/llvm-project?rev=234125&view=rev
Log:
Make -polly-no-tiling work again
Modified:
polly/trunk/lib/Transform/ScheduleOptimizer.cpp
polly/trunk/test/ScheduleOptimizer/rectangular-tiling.ll
Modified: polly/trunk/lib/Transform/ScheduleOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Transform/ScheduleOptimizer.cpp?rev=234125&r1=234124&r2=234125&view=diff
==============================================================================
--- polly/trunk/lib/Transform/ScheduleOptimizer.cpp (original)
+++ polly/trunk/lib/Transform/ScheduleOptimizer.cpp Sun Apr 5 16:52:21 2015
@@ -285,7 +285,14 @@ isl_schedule_node *IslScheduleOptimizer:
Sizes = isl_multi_val_set_val(Sizes, i, isl_val_int_from_si(Ctx, tileSize));
}
- auto Res = isl_schedule_node_band_tile(Node, Sizes);
+ isl_schedule_node *Res;
+
+ if (DisableTiling) {
+ isl_multi_val_free(Sizes);
+ Res = Node;
+ } else {
+ Res = isl_schedule_node_band_tile(Node, Sizes);
+ }
if (PollyVectorizerChoice == VECTORIZER_NONE)
return Res;
Modified: polly/trunk/test/ScheduleOptimizer/rectangular-tiling.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/ScheduleOptimizer/rectangular-tiling.ll?rev=234125&r1=234124&r2=234125&view=diff
==============================================================================
--- polly/trunk/test/ScheduleOptimizer/rectangular-tiling.ll (original)
+++ polly/trunk/test/ScheduleOptimizer/rectangular-tiling.ll Sun Apr 5 16:52:21 2015
@@ -1,4 +1,5 @@
-; RUN: opt %loadPolly -polly-detect-unprofitable -polly-opt-isl -analyze -polly-no-tiling=0 -polly-ast -polly-tile-sizes=256,16 < %s | FileCheck %s
+; RUN: opt %loadPolly -polly-detect-unprofitable -polly-opt-isl -analyze -polly-ast -polly-tile-sizes=256,16 < %s | FileCheck %s
+; RUN: opt %loadPolly -polly-detect-unprofitable -polly-opt-isl -analyze -polly-no-tiling -polly-ast -polly-tile-sizes=256,16 < %s | FileCheck %s --check-prefix=NOTILING
; CHECK: for (int c0 = 0; c0 <= 3; c0 += 1)
; CHECK: for (int c1 = 0; c1 <= 31; c1 += 1)
@@ -6,6 +7,10 @@
; CHECK: for (int c3 = 0; c3 <= 15; c3 += 1)
; CHECK: Stmt_for_body3(256 * c0 + c2, 16 * c1 + c3);
+; NOTILING: for (int c0 = 0; c0 <= 1023; c0 += 1)
+; NOTILING: for (int c1 = 0; c1 <= 511; c1 += 1)
+; NOTILING: Stmt_for_body3(c0, c1);
+
target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-n32-S64"
; Function Attrs: nounwind
More information about the llvm-commits
mailing list