From a43ba2d84f23e95b28fe22daafe7c056a20f8ba2 Mon Sep 17 00:00:00 2001 From: Michael Kruse Date: Sat, 3 Feb 2018 06:59:47 +0000 Subject: [ScopBuilder] Make -polly-stmt-granularity=scalar-indep the default. Splitting basic blocks into multiple statements if there are now additional scalar dependencies gives more freedom to the scheduler, but more statements also means higher compile-time complexity. Switch to finer statement granularity, the additional compile time should be limited by the number of operations quota. The regression tests are written for the -polly-stmt-granularity=bb setting, therefore we add that flag to those tests that break with the new default. Some of the tests only fail because the statements are named differently due to a basic block resulting in multiple statements, but which are removed during simplification of statements without side-effects. Previous commits tried to reduce this effect, but it is not completely avoidable. Differential Revision: https://reviews.llvm.org/D42151 llvm-svn: 324169 --- polly/test/Isl/CodeGen/MemAccess/map_scalar_access.ll | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'polly/test/Isl/CodeGen/MemAccess/map_scalar_access.ll') diff --git a/polly/test/Isl/CodeGen/MemAccess/map_scalar_access.ll b/polly/test/Isl/CodeGen/MemAccess/map_scalar_access.ll index 04c1fbb3f41..06d91e3f3c8 100644 --- a/polly/test/Isl/CodeGen/MemAccess/map_scalar_access.ll +++ b/polly/test/Isl/CodeGen/MemAccess/map_scalar_access.ll @@ -1,5 +1,5 @@ -; RUN: opt %loadPolly -polly-import-jscop-postfix=transformed -polly-import-jscop -analyze < %s | FileCheck %s -; RUN: opt %loadPolly -polly-import-jscop-postfix=transformed -polly-import-jscop -polly-codegen -S < %s | FileCheck %s --check-prefix=CODEGEN +; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-import-jscop-postfix=transformed -polly-import-jscop -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-import-jscop-postfix=transformed -polly-import-jscop -polly-codegen -S < %s | FileCheck %s --check-prefix=CODEGEN define void @map_scalar_access(double* noalias nonnull %A) { entry: -- cgit v1.2.3