Index: test/Isl/Ast/alias_simple_1.ll =================================================================== --- test/Isl/Ast/alias_simple_1.ll +++ test/Isl/Ast/alias_simple_1.ll @@ -1,7 +1,20 @@ +; RUN: opt %loadPolly -disable-output -disable-basicaa \ +; RUN: "-passes=print" < %s 2>&1 | FileCheck %s --check-prefix=NOAA ; RUN: opt %loadPolly -polly-ast -analyze -disable-basicaa < %s | FileCheck %s --check-prefix=NOAA +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=BASI ; RUN: opt %loadPolly -polly-ast -analyze < %s | FileCheck %s --check-prefix=BASI +; RUN: opt %loadPolly -disable-output -disable-basicaa \ +; RUN: "-passes=print" -aa-pipeline=type-based-aa < %s 2>&1 | \ +; RUN: FileCheck %s --check-prefix=TBAA ; RUN: opt %loadPolly -polly-ast -analyze -disable-basicaa -tbaa < %s | FileCheck %s --check-prefix=TBAA +; RUN: opt %loadPolly -disable-output -disable-basicaa \ +; RUN: "-passes=print" -aa-pipeline=scev-aa < %s 2>&1 | FileCheck %s\ +; RUN: --check-prefix=SCEV ; RUN: opt %loadPolly -polly-ast -analyze -disable-basicaa -scev-aa < %s | FileCheck %s --check-prefix=SCEV +; RUN: opt %loadPolly -disable-output -disable-basicaa \ +; RUN: "-passes=print" -aa-pipeline=globals-aa < %s 2>&1 | FileCheck\ +; RUN: %s --check-prefix=GLOB ; RUN: opt %loadPolly -polly-ast -analyze -disable-basicaa -globals-aa < %s | FileCheck %s --check-prefix=GLOB ; ; int A[1024]; Index: test/Isl/Ast/alias_simple_2.ll =================================================================== --- test/Isl/Ast/alias_simple_2.ll +++ test/Isl/Ast/alias_simple_2.ll @@ -1,8 +1,24 @@ +; RUN: opt %loadPolly -disable-output -disable-basicaa \ +; RUN: "-passes=print" < %s 2>&1 | FileCheck %s --check-prefix=NOAA ; RUN: opt %loadPolly -polly-ast -analyze -disable-basicaa < %s | FileCheck %s --check-prefix=NOAA +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=BASI ; RUN: opt %loadPolly -polly-ast -analyze < %s | FileCheck %s --check-prefix=BASI +; RUN: opt %loadPolly -disable-output -disable-basicaa \ +; RUN: "-passes=print" -aa-pipeline=type-based-aa < %s 2>&1 | \ +; RUN: FileCheck %s --check-prefix=TBAA ; RUN: opt %loadPolly -polly-ast -analyze -disable-basicaa -tbaa < %s | FileCheck %s --check-prefix=TBAA +; RUN: opt %loadPolly -disable-output -disable-basicaa \ +; RUN: "-passes=print" -aa-pipeline=scev-aa < %s 2>&1 | FileCheck %s\ +; RUN: --check-prefix=SCEV ; RUN: opt %loadPolly -polly-ast -analyze -disable-basicaa -scev-aa < %s | FileCheck %s --check-prefix=SCEV +; RUN: opt %loadPolly -disable-output -disable-basicaa \ +; RUN: "-passes=print" -aa-pipeline=globals-aa < %s 2>&1 | FileCheck\ +; RUN: %s --check-prefix=GLOB ; RUN: opt %loadPolly -polly-ast -analyze -disable-basicaa -globals-aa < %s | FileCheck %s --check-prefix=GLOB +; RUN: opt %loadPolly -disable-output -disable-basicaa -polly-allow-nonaffine \ +; RUN: "-passes=print" -aa-pipeline=globals-aa < %s 2>&1 | FileCheck\ +; RUN: %s --check-prefix=NONAFFINE ; RUN: opt %loadPolly -polly-ast -analyze -disable-basicaa -globals-aa -polly-allow-nonaffine < %s | FileCheck %s --check-prefix=NONAFFINE ; ; int A[1024], B[1024]; Index: test/Isl/Ast/alias_simple_3.ll =================================================================== --- test/Isl/Ast/alias_simple_3.ll +++ test/Isl/Ast/alias_simple_3.ll @@ -1,7 +1,20 @@ +; RUN: opt %loadPolly -disable-output -disable-basicaa \ +; RUN: "-passes=print" < %s 2>&1 | FileCheck %s --check-prefix=NOAA ; RUN: opt %loadPolly -polly-ast -analyze -disable-basicaa < %s | FileCheck %s --check-prefix=NOAA +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=BASI ; RUN: opt %loadPolly -polly-ast -analyze < %s | FileCheck %s --check-prefix=BASI +; RUN: opt %loadPolly -disable-output -disable-basicaa \ +; RUN: "-passes=print" -aa-pipeline=type-based-aa < %s 2>&1 | \ +; RUN: FileCheck %s --check-prefix=TBAA ; RUN: opt %loadPolly -polly-ast -analyze -disable-basicaa -tbaa < %s | FileCheck %s --check-prefix=TBAA +; RUN: opt %loadPolly -disable-output -disable-basicaa \ +; RUN: "-passes=print" -aa-pipeline=scev-aa < %s 2>&1 | FileCheck %s\ +; RUN: --check-prefix=SCEV ; RUN: opt %loadPolly -polly-ast -analyze -disable-basicaa -scev-aa < %s | FileCheck %s --check-prefix=SCEV +; RUN: opt %loadPolly -disable-output -disable-basicaa \ +; RUN: "-passes=print" -aa-pipeline=globals-aa < %s 2>&1 | FileCheck\ +; RUN: %s --check-prefix=GLOB ; RUN: opt %loadPolly -polly-ast -analyze -disable-basicaa -globals-aa < %s | FileCheck %s --check-prefix=GLOB ; ; int A[1024]; Index: test/Isl/Ast/aliasing_multiple_alias_groups.ll =================================================================== --- test/Isl/Ast/aliasing_multiple_alias_groups.ll +++ test/Isl/Ast/aliasing_multiple_alias_groups.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=NOAA ; RUN: opt %loadPolly -polly-ast -analyze < %s | FileCheck %s --check-prefix=NOAA +; RUN: opt %loadPolly -disable-output "-passes=print" \ +; RUN: -aa-pipeline=type-based-aa < %s 2>&1 | FileCheck %s --check-prefix=TBAA ; RUN: opt %loadPolly -polly-ast -analyze -tbaa < %s | FileCheck %s --check-prefix=TBAA ; ; void jd(int *Int0, int *Int1, float *Float0, float *Float1) { Index: test/Isl/Ast/aliasing_parametric_simple_1.ll =================================================================== --- test/Isl/Ast/aliasing_parametric_simple_1.ll +++ test/Isl/Ast/aliasing_parametric_simple_1.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-ast -analyze %s | FileCheck %s ; ; void jd(int *A, int *B, int c) { Index: test/Isl/Ast/aliasing_parametric_simple_2.ll =================================================================== --- test/Isl/Ast/aliasing_parametric_simple_2.ll +++ test/Isl/Ast/aliasing_parametric_simple_2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-ast -analyze < %s | FileCheck %s ; ; void jd(int *A, int *B, int c) { Index: test/Isl/Ast/domain_bounded_only_with_context.ll =================================================================== --- test/Isl/Ast/domain_bounded_only_with_context.ll +++ test/Isl/Ast/domain_bounded_only_with_context.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-ast -analyze < %s | FileCheck %s ; CHECK: { Index: test/Isl/Ast/non_affine_access.ll =================================================================== --- test/Isl/Ast/non_affine_access.ll +++ test/Isl/Ast/non_affine_access.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-ast-print-accesses -disable-output \ +; RUN: -polly-allow-nonaffine "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-ast -polly-ast-print-accesses -analyze \ ; RUN: -polly-allow-nonaffine < %s \ ; RUN: | FileCheck %s Index: test/Isl/Ast/reduction_clauses_onedimensional_access.ll =================================================================== --- test/Isl/Ast/reduction_clauses_onedimensional_access.ll +++ test/Isl/Ast/reduction_clauses_onedimensional_access.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-ast-detect-parallel -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | FileCheck \ +; RUN: %s ; RUN: opt %loadPolly -polly-ast -polly-ast-detect-parallel -analyze < %s | FileCheck %s ; ; CHECK: #pragma known-parallel reduction (^ : MemRef_sum) Index: test/Isl/Ast/reduction_dependences_equal_non_reduction_dependences.ll =================================================================== --- test/Isl/Ast/reduction_dependences_equal_non_reduction_dependences.ll +++ test/Isl/Ast/reduction_dependences_equal_non_reduction_dependences.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-ast-detect-parallel -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa < %s 2>&1 | FileCheck \ +; RUN: %s ; RUN: opt %loadPolly -basicaa -polly-ast -polly-ast-detect-parallel -analyze < %s | FileCheck %s ; ; This loopnest contains a reduction which imposes the same dependences as the Index: test/Isl/Ast/reduction_different_reduction_clauses.ll =================================================================== --- test/Isl/Ast/reduction_different_reduction_clauses.ll +++ test/Isl/Ast/reduction_different_reduction_clauses.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-ast-detect-parallel -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa < %s 2>&1 | FileCheck \ +; RUN: %s ; RUN: opt %loadPolly -basicaa -polly-ast -polly-ast-detect-parallel -analyze < %s | FileCheck %s ; ; CHECK: #pragma simd reduction (+ : MemRef_sum{{[1,2]}}, MemRef_sum{{[1,2]}}) reduction (* : MemRef_prod) reduction (| : MemRef_or) reduction (& : MemRef_and) Index: test/Isl/Ast/reduction_multiple_dimensions.ll =================================================================== --- test/Isl/Ast/reduction_multiple_dimensions.ll +++ test/Isl/Ast/reduction_multiple_dimensions.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-ast-detect-parallel -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | FileCheck \ +; RUN: %s ; RUN: opt %loadPolly -polly-ast -polly-ast-detect-parallel -analyze < %s | FileCheck %s ; ; CHECK-NOT:#pragma known-parallel reduction Index: test/Isl/Ast/reduction_multiple_dimensions_2.ll =================================================================== --- test/Isl/Ast/reduction_multiple_dimensions_2.ll +++ test/Isl/Ast/reduction_multiple_dimensions_2.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-ast-detect-parallel -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | FileCheck \ +; RUN: %s ; RUN: opt %loadPolly -polly-ast -polly-ast-detect-parallel -analyze < %s | FileCheck %s ; ; CHECK-NOT:#pragma known-parallel reduction Index: test/Isl/Ast/reduction_multiple_dimensions_3.ll =================================================================== --- test/Isl/Ast/reduction_multiple_dimensions_3.ll +++ test/Isl/Ast/reduction_multiple_dimensions_3.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-ast-detect-parallel -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | FileCheck \ +; RUN: %s ; RUN: opt %loadPolly -polly-ast -polly-ast-detect-parallel -analyze < %s | FileCheck %s ; ; CHECK-NOT:#pragma known-parallel reduction Index: test/Isl/Ast/reduction_multiple_dimensions_4.ll =================================================================== --- test/Isl/Ast/reduction_multiple_dimensions_4.ll +++ test/Isl/Ast/reduction_multiple_dimensions_4.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-ast-detect-parallel -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | FileCheck \ +; RUN: %s ; RUN: opt %loadPolly -polly-ast -polly-ast-detect-parallel -analyze < %s | FileCheck %s ; ; CHECK-NOT:#pragma known-parallel reduction Index: test/Isl/Ast/run-time-condition.ll =================================================================== --- test/Isl/Ast/run-time-condition.ll +++ test/Isl/Ast/run-time-condition.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-ast -analyze < %s | FileCheck %s ; for (i = 0; i < 1024; i++) Index: test/Isl/Ast/runtime_context_with_error_blocks.ll =================================================================== --- test/Isl/Ast/runtime_context_with_error_blocks.ll +++ test/Isl/Ast/runtime_context_with_error_blocks.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | FileCheck \ +; RUN: %s ; RUN: opt %loadPolly -polly-ast -analyze \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s ; Index: test/Isl/Ast/simple-run-time-condition.ll =================================================================== --- test/Isl/Ast/simple-run-time-condition.ll +++ test/Isl/Ast/simple-run-time-condition.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-precise-inbounds < %s \ +; RUN: -polly-precise-fold-accesses "-passes=print" 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-ast -analyze -polly-precise-inbounds < %s \ ; RUN: -polly-precise-fold-accesses \ ; RUN: | FileCheck %s Index: test/Isl/CodeGen/20100617.ll =================================================================== --- test/Isl/CodeGen/20100617.ll +++ test/Isl/CodeGen/20100617.ll @@ -1,3 +1,4 @@ +; RUN: opt %loadPolly -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen < %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/20100622.ll =================================================================== --- test/Isl/CodeGen/20100622.ll +++ test/Isl/CodeGen/20100622.ll @@ -1,4 +1,7 @@ +; RUN: opt %loadPolly -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen < %s +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | not FileCheck %s ; RUN: opt %loadPolly -polly-detect -analyze < %s | not FileCheck %s target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32" Index: test/Isl/CodeGen/20100707.ll =================================================================== --- test/Isl/CodeGen/20100707.ll +++ test/Isl/CodeGen/20100707.ll @@ -1,3 +1,4 @@ +; RUN: opt %loadPolly -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen < %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/20100707_2.ll =================================================================== --- test/Isl/CodeGen/20100707_2.ll +++ test/Isl/CodeGen/20100707_2.ll @@ -1,3 +1,4 @@ +; RUN: opt %loadPolly -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen < %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/20100708.ll =================================================================== --- test/Isl/CodeGen/20100708.ll +++ test/Isl/CodeGen/20100708.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly "-passes=require" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-detect < %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/20100708_2.ll =================================================================== --- test/Isl/CodeGen/20100708_2.ll +++ test/Isl/CodeGen/20100708_2.ll @@ -1,3 +1,4 @@ +; RUN: opt %loadPolly -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen < %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/20100713.ll =================================================================== --- test/Isl/CodeGen/20100713.ll +++ test/Isl/CodeGen/20100713.ll @@ -1,3 +1,4 @@ +; RUN: opt %loadPolly -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen < %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/20100713_2.ll =================================================================== --- test/Isl/CodeGen/20100713_2.ll +++ test/Isl/CodeGen/20100713_2.ll @@ -1,3 +1,4 @@ +; RUN: opt %loadPolly -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen < %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/20100717.ll =================================================================== --- test/Isl/CodeGen/20100717.ll +++ test/Isl/CodeGen/20100717.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen -disable-output < %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/20100718-DomInfo-2.ll =================================================================== --- test/Isl/CodeGen/20100718-DomInfo-2.ll +++ test/Isl/CodeGen/20100718-DomInfo-2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -verify-dom-info -disable-output -passes=polly-codegen < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen -verify-dom-info -disable-output < %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/20100718-DomInfo.ll =================================================================== --- test/Isl/CodeGen/20100718-DomInfo.ll +++ test/Isl/CodeGen/20100718-DomInfo.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -verify-dom-info -disable-output -passes=polly-codegen < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen -verify-dom-info -disable-output < %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/20100720-MultipleConditions.ll =================================================================== --- test/Isl/CodeGen/20100720-MultipleConditions.ll +++ test/Isl/CodeGen/20100720-MultipleConditions.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-ast -analyze < %s ;int bar1(); Index: test/Isl/CodeGen/20100809-IndependentBlock.ll =================================================================== --- test/Isl/CodeGen/20100809-IndependentBlock.ll +++ test/Isl/CodeGen/20100809-IndependentBlock.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen -disable-output < %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" define void @cfft2([2 x float]* %x) nounwind { Index: test/Isl/CodeGen/20100811-ScalarDependencyBetweenBrAndCnd.ll =================================================================== --- test/Isl/CodeGen/20100811-ScalarDependencyBetweenBrAndCnd.ll +++ test/Isl/CodeGen/20100811-ScalarDependencyBetweenBrAndCnd.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen -disable-output < %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/20101030-Overflow.ll =================================================================== --- test/Isl/CodeGen/20101030-Overflow.ll +++ test/Isl/CodeGen/20101030-Overflow.ll @@ -1,3 +1,4 @@ +; RUN: opt %loadPolly -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen < %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/20101103-Overflow3.ll =================================================================== --- test/Isl/CodeGen/20101103-Overflow3.ll +++ test/Isl/CodeGen/20101103-Overflow3.ll @@ -1,3 +1,4 @@ +; RUN: opt %loadPolly -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen < %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" define void @Reflection_coefficients(i16* %r) nounwind { Index: test/Isl/CodeGen/20101103-signmissmatch.ll =================================================================== --- test/Isl/CodeGen/20101103-signmissmatch.ll +++ test/Isl/CodeGen/20101103-signmissmatch.ll @@ -1,3 +1,4 @@ +; RUN: opt %loadPolly -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen < %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/20110226-Ignore-Dead-Code.ll =================================================================== --- test/Isl/CodeGen/20110226-Ignore-Dead-Code.ll +++ test/Isl/CodeGen/20110226-Ignore-Dead-Code.ll @@ -1,3 +1,4 @@ +; RUN: opt %loadPolly -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen < %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/20110226-PHI-Node-removed.ll =================================================================== --- test/Isl/CodeGen/20110226-PHI-Node-removed.ll +++ test/Isl/CodeGen/20110226-PHI-Node-removed.ll @@ -1,3 +1,4 @@ +; RUN: opt %loadPolly -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen < %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/20120316-InvalidCast.ll =================================================================== --- test/Isl/CodeGen/20120316-InvalidCast.ll +++ test/Isl/CodeGen/20120316-InvalidCast.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -S -polly-codegen < %s | FileCheck %s ; CHECK: polly.start Index: test/Isl/CodeGen/20120403-RHS-type-mismatch.ll =================================================================== --- test/Isl/CodeGen/20120403-RHS-type-mismatch.ll +++ test/Isl/CodeGen/20120403-RHS-type-mismatch.ll @@ -1,3 +1,4 @@ +; RUN: opt %loadPolly -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen < %s ; We just check that this compilation does not crash. Index: test/Isl/CodeGen/20130211-getNumberOfIterations.ll =================================================================== --- test/Isl/CodeGen/20130211-getNumberOfIterations.ll +++ test/Isl/CodeGen/20130211-getNumberOfIterations.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-vectorizer=polly -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen -polly-vectorizer=polly < %s ; This test case checks that the polly vectorizer does not crash when Index: test/Isl/CodeGen/20130221.ll =================================================================== --- test/Isl/CodeGen/20130221.ll +++ test/Isl/CodeGen/20130221.ll @@ -1,3 +1,4 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen -S < %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" Index: test/Isl/CodeGen/20150328-SCEVExpanderIntroducesNewIV.ll =================================================================== --- test/Isl/CodeGen/20150328-SCEVExpanderIntroducesNewIV.ll +++ test/Isl/CodeGen/20150328-SCEVExpanderIntroducesNewIV.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s @A = common global [1536 x float] zeroinitializer Index: test/Isl/CodeGen/LoopParallelMD/do_not_mutate_debug_info.ll =================================================================== --- test/Isl/CodeGen/LoopParallelMD/do_not_mutate_debug_info.ll +++ test/Isl/CodeGen/LoopParallelMD/do_not_mutate_debug_info.ll @@ -1,5 +1,8 @@ ; This test checks that we do not accidently mutate the debug info when ; inserting loop parallel metadata. +; RUN: opt %loadPolly < %s -S -polly -polly-ast-detect-parallel \ +; RUN: -passes=polly-codegen 2>&1 -aa-pipeline=basic-aa | FileCheck %s \ +; RUN: --allow-empty ; RUN: opt %loadPolly < %s -S -polly -polly-codegen -polly-ast-detect-parallel | FileCheck %s ; CHECK-NOT: !7 = !{!7} target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" Index: test/Isl/CodeGen/LoopParallelMD/loop_nest_param_parallel.ll =================================================================== --- test/Isl/CodeGen/LoopParallelMD/loop_nest_param_parallel.ll +++ test/Isl/CodeGen/LoopParallelMD/loop_nest_param_parallel.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-ast-detect-parallel -S -passes=polly-codegen < %s \ +; RUN: 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-ast-detect-parallel -S < %s | FileCheck %s ; ; Check that we mark multiple parallel loops correctly including the memory instructions. Index: test/Isl/CodeGen/LoopParallelMD/single_loop_param_parallel.ll =================================================================== --- test/Isl/CodeGen/LoopParallelMD/single_loop_param_parallel.ll +++ test/Isl/CodeGen/LoopParallelMD/single_loop_param_parallel.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s -check-prefix=SEQUENTIAL ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s -check-prefix=SEQUENTIAL +; RUN: opt %loadPolly -polly-ast-detect-parallel -S -passes=polly-codegen < %s \ +; RUN: 2>&1 -aa-pipeline=basic-aa | FileCheck %s -check-prefix=PARALLEL ; RUN: opt %loadPolly -polly-codegen -polly-ast-detect-parallel -S < %s | FileCheck %s -check-prefix=PARALLEL target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/MemAccess/generate-all.ll =================================================================== --- test/Isl/CodeGen/MemAccess/generate-all.ll +++ test/Isl/CodeGen/MemAccess/generate-all.ll @@ -1,5 +1,11 @@ +; RUN: opt %loadPolly -polly-codegen-generate-expressions=false -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s \ +; RUN: -check-prefix=SCEV ; RUN: opt %loadPolly -polly-codegen -polly-codegen-generate-expressions=false \ ; RUN: -S < %s | FileCheck %s -check-prefix=SCEV +; RUN: opt %loadPolly -polly-codegen-generate-expressions=true -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s \ +; RUN: -check-prefix=ASTEXPR ; RUN: opt %loadPolly -polly-codegen -polly-codegen-generate-expressions=true \ ; RUN: -S < %s | FileCheck %s -check-prefix=ASTEXPR ; Index: test/Isl/CodeGen/OpenMP/alias-metadata.ll =================================================================== --- test/Isl/CodeGen/OpenMP/alias-metadata.ll +++ test/Isl/CodeGen/OpenMP/alias-metadata.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-parallel -S -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-parallel -S < %s | FileCheck %s ; ; void foo(float *A, float *B) { Index: test/Isl/CodeGen/OpenMP/invariant_base_pointer_preloaded.ll =================================================================== --- test/Isl/CodeGen/OpenMP/invariant_base_pointer_preloaded.ll +++ test/Isl/CodeGen/OpenMP/invariant_base_pointer_preloaded.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -polly-parallel \ +; RUN: -polly-parallel-force -S -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -polly-parallel \ ; RUN: -polly-parallel-force -S < %s | FileCheck %s ; Index: test/Isl/CodeGen/OpenMP/invariant_base_pointer_preloaded_different_bb.ll =================================================================== --- test/Isl/CodeGen/OpenMP/invariant_base_pointer_preloaded_different_bb.ll +++ test/Isl/CodeGen/OpenMP/invariant_base_pointer_preloaded_different_bb.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -polly-parallel \ +; RUN: -polly-parallel-force -S -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -polly-parallel \ ; RUN: -polly-parallel-force -S < %s | FileCheck %s ; Index: test/Isl/CodeGen/OpenMP/invariant_base_pointer_preloaded_pass_only_needed.ll =================================================================== --- test/Isl/CodeGen/OpenMP/invariant_base_pointer_preloaded_pass_only_needed.ll +++ test/Isl/CodeGen/OpenMP/invariant_base_pointer_preloaded_pass_only_needed.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -polly-parallel \ +; RUN: -polly-parallel-force -S -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -polly-parallel \ ; RUN: -polly-parallel-force -S < %s | FileCheck %s ; Index: test/Isl/CodeGen/OpenMP/invariant_base_pointers_preloaded.ll =================================================================== --- test/Isl/CodeGen/OpenMP/invariant_base_pointers_preloaded.ll +++ test/Isl/CodeGen/OpenMP/invariant_base_pointers_preloaded.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -polly-parallel \ +; RUN: -polly-parallel-force -S -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -polly-parallel \ ; RUN: -polly-parallel-force -S < %s | FileCheck %s ; Index: test/Isl/CodeGen/OpenMP/loop-body-references-outer-iv.ll =================================================================== --- test/Isl/CodeGen/OpenMP/loop-body-references-outer-iv.ll +++ test/Isl/CodeGen/OpenMP/loop-body-references-outer-iv.ll @@ -1,4 +1,10 @@ +; RUN: opt %loadPolly -polly-parallel -polly-parallel-force -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | FileCheck \ +; RUN: %s -check-prefix=AST ; RUN: opt %loadPolly -polly-parallel -polly-parallel-force -polly-ast -analyze < %s | FileCheck %s -check-prefix=AST +; RUN: opt %loadPolly -polly-parallel -polly-parallel-force -S -verify-dom-info\ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s \ +; RUN: -check-prefix=IR ; RUN: opt %loadPolly -polly-parallel -polly-parallel-force -polly-codegen -S -verify-dom-info < %s | FileCheck %s -check-prefix=IR ; This code has failed the scev based code generation as the scev in the scop Index: test/Isl/CodeGen/OpenMP/loop-body-references-outer-values-2.ll =================================================================== --- test/Isl/CodeGen/OpenMP/loop-body-references-outer-values-2.ll +++ test/Isl/CodeGen/OpenMP/loop-body-references-outer-values-2.ll @@ -1,4 +1,10 @@ +; RUN: opt %loadPolly -polly-parallel -polly-parallel-force -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | FileCheck \ +; RUN: %s -check-prefix=AST ; RUN: opt %loadPolly -polly-parallel -polly-parallel-force -polly-ast -analyze < %s | FileCheck %s -check-prefix=AST +; RUN: opt %loadPolly -polly-parallel -polly-parallel-force -S -verify-dom-info\ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s \ +; RUN: -check-prefix=IR ; RUN: opt %loadPolly -polly-parallel -polly-parallel-force -polly-codegen -S -verify-dom-info < %s | FileCheck %s -check-prefix=IR ; AST: #pragma simd Index: test/Isl/CodeGen/OpenMP/loop-body-references-outer-values-3.ll =================================================================== --- test/Isl/CodeGen/OpenMP/loop-body-references-outer-values-3.ll +++ test/Isl/CodeGen/OpenMP/loop-body-references-outer-values-3.ll @@ -1,4 +1,12 @@ +; RUN: opt %loadPolly -polly-parallel -polly-parallel-force \ +; RUN: -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa < %s 2>&1 | FileCheck \ +; RUN: %s -check-prefix=AST ; RUN: opt %loadPolly -basicaa -polly-parallel -polly-parallel-force -polly-invariant-load-hoisting=true -polly-ast -analyze < %s | FileCheck %s -check-prefix=AST +; RUN: opt %loadPolly -polly-parallel -polly-parallel-force \ +; RUN: -polly-invariant-load-hoisting=true -S -verify-dom-info \ +; RUN: -passes=polly-codegen -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s \ +; RUN: -check-prefix=IR ; RUN: opt %loadPolly -basicaa -polly-parallel -polly-parallel-force -polly-invariant-load-hoisting=true -polly-codegen -S -verify-dom-info < %s | FileCheck %s -check-prefix=IR ; The interesting part of this test case is the instruction: Index: test/Isl/CodeGen/OpenMP/loop-body-references-outer-values.ll =================================================================== --- test/Isl/CodeGen/OpenMP/loop-body-references-outer-values.ll +++ test/Isl/CodeGen/OpenMP/loop-body-references-outer-values.ll @@ -1,4 +1,10 @@ +; RUN: opt %loadPolly -polly-parallel -polly-parallel-force -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | FileCheck \ +; RUN: %s -check-prefix=AST ; RUN: opt %loadPolly -polly-parallel -polly-parallel-force -polly-ast -analyze < %s | FileCheck %s -check-prefix=AST +; RUN: opt %loadPolly -polly-parallel -polly-parallel-force -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s \ +; RUN: -check-prefix=IR ; RUN: opt %loadPolly -polly-parallel -polly-parallel-force -polly-codegen -S < %s | FileCheck %s -check-prefix=IR ; Make sure we correctly forward the reference to 'A' to the OpenMP subfunction. Index: test/Isl/CodeGen/OpenMP/loop-bounds-reference-outer-ids.ll =================================================================== --- test/Isl/CodeGen/OpenMP/loop-bounds-reference-outer-ids.ll +++ test/Isl/CodeGen/OpenMP/loop-bounds-reference-outer-ids.ll @@ -1,4 +1,9 @@ +; RUN: opt %loadPolly -polly-parallel -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | FileCheck \ +; RUN: %s -check-prefix=AST ; RUN: opt %loadPolly -polly-parallel -polly-ast -analyze < %s | FileCheck %s -check-prefix=AST +; RUN: opt %loadPolly -polly-parallel -S -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s -check-prefix=IR ; RUN: opt %loadPolly -polly-parallel -polly-codegen -S < %s | FileCheck %s -check-prefix=IR ; ; float A[100]; Index: test/Isl/CodeGen/OpenMP/recomputed-srem.ll =================================================================== --- test/Isl/CodeGen/OpenMP/recomputed-srem.ll +++ test/Isl/CodeGen/OpenMP/recomputed-srem.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-parallel \ +; RUN: -polly-parallel-force -S -passes=polly-codegen -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-codegen -polly-parallel \ ; RUN: -polly-parallel-force -S < %s | FileCheck %s ; Index: test/Isl/CodeGen/OpenMP/reference-argument-from-non-affine-region.ll =================================================================== --- test/Isl/CodeGen/OpenMP/reference-argument-from-non-affine-region.ll +++ test/Isl/CodeGen/OpenMP/reference-argument-from-non-affine-region.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-parallel -polly-parallel-force -S -verify-dom-info\ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s \ +; RUN: -check-prefix=IR ; RUN: opt %loadPolly -polly-parallel \ ; RUN: -polly-parallel-force -polly-codegen -S -verify-dom-info < %s \ ; RUN: | FileCheck %s -check-prefix=IR Index: test/Isl/CodeGen/OpenMP/reference-other-bb.ll =================================================================== --- test/Isl/CodeGen/OpenMP/reference-other-bb.ll +++ test/Isl/CodeGen/OpenMP/reference-other-bb.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-parallel -polly-parallel-force -S -verify-dom-info\ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s \ +; RUN: -check-prefix=IR ; RUN: opt %loadPolly -polly-parallel -polly-parallel-force -polly-codegen -S -verify-dom-info < %s | FileCheck %s -check-prefix=IR ; IR: @foo_polly_subfn Index: test/Isl/CodeGen/OpenMP/reference-preceeding-loop.ll =================================================================== --- test/Isl/CodeGen/OpenMP/reference-preceeding-loop.ll +++ test/Isl/CodeGen/OpenMP/reference-preceeding-loop.ll @@ -1,4 +1,10 @@ +; RUN: opt %loadPolly -polly-parallel -polly-parallel-force -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | FileCheck \ +; RUN: %s -check-prefix=AST ; RUN: opt %loadPolly -polly-parallel -polly-parallel-force -polly-ast -analyze < %s | FileCheck %s -check-prefix=AST +; RUN: opt %loadPolly -polly-parallel -polly-parallel-force -S -verify-dom-info\ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s \ +; RUN: -check-prefix=IR ; RUN: opt %loadPolly -polly-parallel -polly-parallel-force -polly-codegen -S -verify-dom-info < %s | FileCheck %s -check-prefix=IR Index: test/Isl/CodeGen/OpenMP/single_loop_with_loop_invariant_baseptr.ll =================================================================== --- test/Isl/CodeGen/OpenMP/single_loop_with_loop_invariant_baseptr.ll +++ test/Isl/CodeGen/OpenMP/single_loop_with_loop_invariant_baseptr.ll @@ -1,4 +1,12 @@ +; RUN: opt %loadPolly -polly-parallel -polly-parallel-force \ +; RUN: -polly-parallel-force -polly-invariant-load-hoisting=true \ +; RUN: -disable-output "-passes=print" -aa-pipeline=type-based-aa < \ +; RUN: %s 2>&1 | FileCheck %s -check-prefix=AST ; RUN: opt %loadPolly -tbaa -polly-parallel -polly-parallel-force -polly-parallel-force -polly-invariant-load-hoisting=true -polly-ast -analyze < %s | FileCheck %s -check-prefix=AST +; RUN: opt %loadPolly -polly-parallel -polly-parallel-force \ +; RUN: -polly-parallel-force -polly-invariant-load-hoisting=true -S \ +; RUN: -verify-dom-info -passes=polly-codegen -aa-pipeline=type-based-aa < %s \ +; RUN: 2>&1 | FileCheck %s -check-prefix=IR ; RUN: opt %loadPolly -tbaa -polly-parallel -polly-parallel-force -polly-parallel-force -polly-invariant-load-hoisting=true -polly-codegen -S -verify-dom-info < %s | FileCheck %s -check-prefix=IR ; #define N 1024 Index: test/Isl/CodeGen/OpenMP/single_loop_with_param.ll =================================================================== --- test/Isl/CodeGen/OpenMP/single_loop_with_param.ll +++ test/Isl/CodeGen/OpenMP/single_loop_with_param.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-parallel -polly-parallel-force -S -verify-dom-info\ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s \ +; RUN: -check-prefix=IR ; RUN: opt %loadPolly -polly-parallel \ ; RUN: -polly-parallel-force -polly-codegen -S -verify-dom-info < %s \ ; RUN: | FileCheck %s -check-prefix=IR Index: test/Isl/CodeGen/OpenMP/two-parallel-loops-reference-outer-indvar.ll =================================================================== --- test/Isl/CodeGen/OpenMP/two-parallel-loops-reference-outer-indvar.ll +++ test/Isl/CodeGen/OpenMP/two-parallel-loops-reference-outer-indvar.ll @@ -1,4 +1,10 @@ +; RUN: opt %loadPolly -polly-parallel -polly-parallel-force -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | FileCheck \ +; RUN: %s -check-prefix=AST ; RUN: opt %loadPolly -polly-parallel -polly-parallel-force -polly-ast -analyze < %s | FileCheck %s -check-prefix=AST +; RUN: opt %loadPolly -polly-parallel -polly-parallel-force -S -verify-dom-info\ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s \ +; RUN: -check-prefix=IR ; RUN: opt %loadPolly -polly-parallel -polly-parallel-force -polly-codegen -S -verify-dom-info < %s | FileCheck %s -check-prefix=IR ; This test case verifies that we create correct code even if two OpenMP loops Index: test/Isl/CodeGen/PHIInExit.ll =================================================================== --- test/Isl/CodeGen/PHIInExit.ll +++ test/Isl/CodeGen/PHIInExit.ll @@ -1,3 +1,4 @@ +; RUN: opt %loadPolly -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen < %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/RuntimeDebugBuilder/combine_different_values.ll =================================================================== --- test/Isl/CodeGen/RuntimeDebugBuilder/combine_different_values.ll +++ test/Isl/CodeGen/RuntimeDebugBuilder/combine_different_values.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -S -polly-codegen-add-debug-printing \ +; RUN: -polly-ignore-aliasing -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S \ ; RUN: -polly-codegen-add-debug-printing \ ; RUN: -polly-ignore-aliasing < %s | FileCheck %s Index: test/Isl/CodeGen/alias-check-multi-dim.ll =================================================================== --- test/Isl/CodeGen/alias-check-multi-dim.ll +++ test/Isl/CodeGen/alias-check-multi-dim.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen \ ; RUN: -S < %s | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" Index: test/Isl/CodeGen/alias_metadata_too_many_arrays.ll =================================================================== --- test/Isl/CodeGen/alias_metadata_too_many_arrays.ll +++ test/Isl/CodeGen/alias_metadata_too_many_arrays.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-ignore-aliasing -S -passes=polly-codegen < %s 2>&1\ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-ignore-aliasing -S < %s \ ; RUN: | FileCheck %s ; Index: test/Isl/CodeGen/aliasing_different_base_and_access_type.ll =================================================================== --- test/Isl/CodeGen/aliasing_different_base_and_access_type.ll +++ test/Isl/CodeGen/aliasing_different_base_and_access_type.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -S -polly-codegen < %s | FileCheck %s ; ; We have to cast %B to "short *" before we create RTCs. Index: test/Isl/CodeGen/aliasing_different_pointer_types.ll =================================================================== --- test/Isl/CodeGen/aliasing_different_pointer_types.ll +++ test/Isl/CodeGen/aliasing_different_pointer_types.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; ; Check that we cast the different pointer types correctly before we compare Index: test/Isl/CodeGen/aliasing_multidimensional_access.ll =================================================================== --- test/Isl/CodeGen/aliasing_multidimensional_access.ll +++ test/Isl/CodeGen/aliasing_multidimensional_access.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -S -polly-codegen < %s | FileCheck %s ; ; Check that we calculate the maximal access into array A correctly and track the overflow state. Index: test/Isl/CodeGen/aliasing_parametric_simple_1.ll =================================================================== --- test/Isl/CodeGen/aliasing_parametric_simple_1.ll +++ test/Isl/CodeGen/aliasing_parametric_simple_1.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; ; void jd(int *A, int *B, int c) { Index: test/Isl/CodeGen/aliasing_parametric_simple_2.ll =================================================================== --- test/Isl/CodeGen/aliasing_parametric_simple_2.ll +++ test/Isl/CodeGen/aliasing_parametric_simple_2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; ; void jd(int *A, int *B, int c) { Index: test/Isl/CodeGen/aliasing_struct_element.ll =================================================================== --- test/Isl/CodeGen/aliasing_struct_element.ll +++ test/Isl/CodeGen/aliasing_struct_element.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -S -polly-codegen < %s | FileCheck %s ; ; We should only access (or compute the address of) "the first element" of %S Index: test/Isl/CodeGen/alignment.ll =================================================================== --- test/Isl/CodeGen/alignment.ll +++ test/Isl/CodeGen/alignment.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; ; Check that the special alignment information is kept Index: test/Isl/CodeGen/annotated_alias_scopes.ll =================================================================== --- test/Isl/CodeGen/annotated_alias_scopes.ll +++ test/Isl/CodeGen/annotated_alias_scopes.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s --check-prefix=SCOPES ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s --check-prefix=SCOPES ; ; Check that we create alias scopes that indicate the accesses to A, B and C cannot alias in any way. Index: test/Isl/CodeGen/blas_sscal_simplified.ll =================================================================== --- test/Isl/CodeGen/blas_sscal_simplified.ll +++ test/Isl/CodeGen/blas_sscal_simplified.ll @@ -1,3 +1,4 @@ +; RUN: opt %loadPolly -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen < %s ; ; Regression test for a bug in the runtime check generation. Index: test/Isl/CodeGen/conflict-between-loop-invariant-code-hosting-and-escape-map-computation.ll =================================================================== --- test/Isl/CodeGen/conflict-between-loop-invariant-code-hosting-and-escape-map-computation.ll +++ test/Isl/CodeGen/conflict-between-loop-invariant-code-hosting-and-escape-map-computation.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-process-unprofitable -disable-output \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-process-unprofitable -analyze -polly-codegen < %s ; ; CHECK: store i32 %tmp14_p_scalar_, i32* %tmp14.s2a Index: test/Isl/CodeGen/constant_condition.ll =================================================================== --- test/Isl/CodeGen/constant_condition.ll +++ test/Isl/CodeGen/constant_condition.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output \ +; RUN: "-passes=function(polly-prepare,scop(print))" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ;RUN: opt %loadPolly -polly-prepare -polly-ast -analyze < %s | FileCheck %s ;#include Index: test/Isl/CodeGen/create-conditional-scop.ll =================================================================== --- test/Isl/CodeGen/create-conditional-scop.ll +++ test/Isl/CodeGen/create-conditional-scop.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -verify-loop-info < %s -S -passes=polly-codegen \ +; RUN: -aa-pipeline=basic-aa 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-codegen -verify-loop-info < %s -S | FileCheck %s target datalayout = "e-p:32:32:32-i64:64:64-i32:32:32-i16:16:16-i1:32:32-f64:64:64-f32:32:32-a0:0-n32" Index: test/Isl/CodeGen/dead_invariant_load_instruction_referenced_by_parameter_1.ll =================================================================== --- test/Isl/CodeGen/dead_invariant_load_instruction_referenced_by_parameter_1.ll +++ test/Isl/CodeGen/dead_invariant_load_instruction_referenced_by_parameter_1.ll @@ -1,3 +1,4 @@ +; RUN: opt %loadPolly -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen < %s ; ; Check we do not crash even though the dead %tmp8 is referenced by a parameter Index: test/Isl/CodeGen/dead_invariant_load_instruction_referenced_by_parameter_2.ll =================================================================== --- test/Isl/CodeGen/dead_invariant_load_instruction_referenced_by_parameter_2.ll +++ test/Isl/CodeGen/dead_invariant_load_instruction_referenced_by_parameter_2.ll @@ -1,3 +1,4 @@ +; RUN: opt %loadPolly -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen < %s ; ; Check we do not crash even though there is a dead load that is referenced by Index: test/Isl/CodeGen/debug-intrinsics.ll =================================================================== --- test/Isl/CodeGen/debug-intrinsics.ll +++ test/Isl/CodeGen/debug-intrinsics.ll @@ -1,7 +1,11 @@ +; RUN: opt %loadPolly -polly-analyze-read-only-scalars=false -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly \ ; RUN: -polly-analyze-read-only-scalars=false -polly-codegen -S < %s | \ ; RUN: FileCheck %s +; RUN: opt %loadPolly -polly-analyze-read-only-scalars=true -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly \ ; RUN: -polly-analyze-read-only-scalars=true -polly-codegen -S < %s | \ ; RUN: FileCheck %s Index: test/Isl/CodeGen/dominance_problem_after_early_codegen_bailout.ll =================================================================== --- test/Isl/CodeGen/dominance_problem_after_early_codegen_bailout.ll +++ test/Isl/CodeGen/dominance_problem_after_early_codegen_bailout.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen -analyze < %s ; ; This caused dominance problems at some point as we do bail out during Index: test/Isl/CodeGen/entry_with_trivial_phi.ll =================================================================== --- test/Isl/CodeGen/entry_with_trivial_phi.ll +++ test/Isl/CodeGen/entry_with_trivial_phi.ll @@ -1,3 +1,4 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen -S < %s ; ; The entry of this scop's simple region (entry.split => for.end) has an trivial Index: test/Isl/CodeGen/entry_with_trivial_phi_other_bb.ll =================================================================== --- test/Isl/CodeGen/entry_with_trivial_phi_other_bb.ll +++ test/Isl/CodeGen/entry_with_trivial_phi_other_bb.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; ; The entry of this scop's simple region (entry.split => for.end) has an trivial Index: test/Isl/CodeGen/error-stmt-in-non-affine-region.ll =================================================================== --- test/Isl/CodeGen/error-stmt-in-non-affine-region.ll +++ test/Isl/CodeGen/error-stmt-in-non-affine-region.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -S -polly-codegen < %s | FileCheck %s ; XFAIL: * ; Index: test/Isl/CodeGen/error_block_contains_invalid_memory_access.ll =================================================================== --- test/Isl/CodeGen/error_block_contains_invalid_memory_access.ll +++ test/Isl/CodeGen/error_block_contains_invalid_memory_access.ll @@ -1,3 +1,4 @@ +; RUN: opt %loadPolly -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen < %s ; target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" Index: test/Isl/CodeGen/fortran_array_runtime_size_generation.ll =================================================================== --- test/Isl/CodeGen/fortran_array_runtime_size_generation.ll +++ test/Isl/CodeGen/fortran_array_runtime_size_generation.ll @@ -1,6 +1,8 @@ ; Check that the runtime size computation is generated for Fortran arrays. ; Regular code generation backend: +; RUN: opt %loadPolly -S -polly-detect-fortran-arrays -passes=polly-codegen < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -S -polly-detect-fortran-arrays \ ; RUN: -polly-codegen < %s | FileCheck %s Index: test/Isl/CodeGen/getNumberOfIterations.ll =================================================================== --- test/Isl/CodeGen/getNumberOfIterations.ll +++ test/Isl/CodeGen/getNumberOfIterations.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-vectorizer=polly < %s -S -passes=polly-codegen \ +; RUN: 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-vectorizer=polly -polly-codegen \ ; RUN: < %s -S | FileCheck %s Index: test/Isl/CodeGen/hoisted_load_escapes_through_phi.ll =================================================================== --- test/Isl/CodeGen/hoisted_load_escapes_through_phi.ll +++ test/Isl/CodeGen/hoisted_load_escapes_through_phi.ll @@ -1,5 +1,9 @@ +; RUN: opt %loadPolly -S -polly-invariant-load-hoisting=false \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -S -polly-codegen \ ; RUN: -polly-invariant-load-hoisting=false < %s | FileCheck %s +; RUN: opt %loadPolly -S -polly-invariant-load-hoisting=true \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -S -polly-codegen \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s ; Index: test/Isl/CodeGen/hoisting_1.ll =================================================================== --- test/Isl/CodeGen/hoisting_1.ll +++ test/Isl/CodeGen/hoisting_1.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-allow-differing-element-types -disable-output \ +; RUN: -passes=polly-codegen -aa-pipeline=type-based-aa %s 2>&1 ; RUN: opt %loadPolly -tbaa -polly-codegen -polly-allow-differing-element-types -disable-output %s ; target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" Index: test/Isl/CodeGen/hoisting_2.ll =================================================================== --- test/Isl/CodeGen/hoisting_2.ll +++ test/Isl/CodeGen/hoisting_2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-allow-differing-element-types -disable-output \ +; RUN: -passes=polly-codegen -aa-pipeline=type-based-aa %s 2>&1 ; RUN: opt %loadPolly -tbaa -polly-codegen -polly-allow-differing-element-types -disable-output %s ; target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" Index: test/Isl/CodeGen/if-conditions-in-vector-code.ll =================================================================== --- test/Isl/CodeGen/if-conditions-in-vector-code.ll +++ test/Isl/CodeGen/if-conditions-in-vector-code.ll @@ -1,6 +1,11 @@ +; RUN: opt %loadPolly -disable-output -polly-vectorizer=polly \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | FileCheck \ +; RUN: %s -check-prefix=AST ; RUN: opt %loadPolly -analyze -polly-ast -polly-vectorizer=polly < %s | \ ; RUN: FileCheck %s -check-prefix=AST +; RUN: opt %loadPolly -polly-vectorizer=polly -S -passes=polly-codegen < %s \ +; RUN: 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-vectorizer=polly -S < %s | \ ; RUN: FileCheck %s ; Index: test/Isl/CodeGen/inner_scev_sdiv_1.ll =================================================================== --- test/Isl/CodeGen/inner_scev_sdiv_1.ll +++ test/Isl/CodeGen/inner_scev_sdiv_1.ll @@ -1,3 +1,4 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -S -polly-codegen < %s ; ; Excerpt from the test-suite's oggenc reduced using bugpoint. Index: test/Isl/CodeGen/inner_scev_sdiv_2.ll =================================================================== --- test/Isl/CodeGen/inner_scev_sdiv_2.ll +++ test/Isl/CodeGen/inner_scev_sdiv_2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -S -polly-codegen < %s | FileCheck %s ; ; The SCEV expression in this test case refers to a sequence of sdiv Index: test/Isl/CodeGen/inner_scev_sdiv_3.ll =================================================================== --- test/Isl/CodeGen/inner_scev_sdiv_3.ll +++ test/Isl/CodeGen/inner_scev_sdiv_3.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -S -polly-codegen < %s | FileCheck %s ; ; This test case has a inner SCEV sdiv that will escape the SCoP. Just check we Index: test/Isl/CodeGen/inner_scev_sdiv_in_lb.ll =================================================================== --- test/Isl/CodeGen/inner_scev_sdiv_in_lb.ll +++ test/Isl/CodeGen/inner_scev_sdiv_in_lb.ll @@ -1,5 +1,9 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly \ ; RUN: -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s --check-prefix=CODEGEN ; RUN: opt %loadPolly \ ; RUN: -S -polly-codegen < %s | FileCheck %s --check-prefix=CODEGEN ; Index: test/Isl/CodeGen/inner_scev_sdiv_in_lb_invariant.ll =================================================================== --- test/Isl/CodeGen/inner_scev_sdiv_in_lb_invariant.ll +++ test/Isl/CodeGen/inner_scev_sdiv_in_lb_invariant.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -S -polly-codegen \ ; RUN: < %s | FileCheck %s ; Index: test/Isl/CodeGen/inner_scev_sdiv_in_rtc.ll =================================================================== --- test/Isl/CodeGen/inner_scev_sdiv_in_rtc.ll +++ test/Isl/CodeGen/inner_scev_sdiv_in_rtc.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen \ ; RUN: -S < %s | FileCheck %s ; Index: test/Isl/CodeGen/intrinsics_lifetime.ll =================================================================== --- test/Isl/CodeGen/intrinsics_lifetime.ll +++ test/Isl/CodeGen/intrinsics_lifetime.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen -aa-pipeline=basic-aa < %s 2>&1 \ +; RUN: | FileCheck %s --allow-empty ; RUN: opt %loadPolly -basicaa -polly-codegen -S < %s | FileCheck %s ; ; Verify that we remove the lifetime markers from everywhere. Index: test/Isl/CodeGen/intrinsics_misc.ll =================================================================== --- test/Isl/CodeGen/intrinsics_misc.ll +++ test/Isl/CodeGen/intrinsics_misc.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen -aa-pipeline=basic-aa < %s 2>&1 \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-codegen -S < %s | FileCheck %s ; ; Verify that we remove the misc intrinsics from the optimized SCoP. Index: test/Isl/CodeGen/inv-load-lnt-crash-wrong-order-2.ll =================================================================== --- test/Isl/CodeGen/inv-load-lnt-crash-wrong-order-2.ll +++ test/Isl/CodeGen/inv-load-lnt-crash-wrong-order-2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -polly-invariant-load-hoisting=true \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s ; Index: test/Isl/CodeGen/inv-load-lnt-crash-wrong-order-3.ll =================================================================== --- test/Isl/CodeGen/inv-load-lnt-crash-wrong-order-3.ll +++ test/Isl/CodeGen/inv-load-lnt-crash-wrong-order-3.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -polly-invariant-load-hoisting=true \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s ; Index: test/Isl/CodeGen/inv-load-lnt-crash-wrong-order.ll =================================================================== --- test/Isl/CodeGen/inv-load-lnt-crash-wrong-order.ll +++ test/Isl/CodeGen/inv-load-lnt-crash-wrong-order.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -polly-invariant-load-hoisting=true \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s ; Index: test/Isl/CodeGen/invariant-load-dimension.ll =================================================================== --- test/Isl/CodeGen/invariant-load-dimension.ll +++ test/Isl/CodeGen/invariant-load-dimension.ll @@ -1,4 +1,10 @@ +; RUN: opt %loadPolly < %s -disable-output -polly-process-unprofitable \ +; RUN: -polly-invariant-load-hoisting "-passes=print" \ +; RUN: 2>&1 -aa-pipeline=basic-aa | FileCheck %s -check-prefix=SCOPS ; RUN: opt %loadPolly < %s -analyze -polly-scops -polly-process-unprofitable -polly-invariant-load-hoisting | FileCheck %s -check-prefix=SCOPS +; RUN: opt %loadPolly -S < %s -polly-process-unprofitable \ +; RUN: -polly-invariant-load-hoisting -passes=polly-codegen 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s -check-prefix=CODEGEN ; RUN: opt %loadPolly -S < %s -polly-codegen -polly-process-unprofitable -polly-invariant-load-hoisting | FileCheck %s -check-prefix=CODEGEN target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n8:16:32-S64" Index: test/Isl/CodeGen/invariant-load-preload-base-pointer-origin-first.ll =================================================================== --- test/Isl/CodeGen/invariant-load-preload-base-pointer-origin-first.ll +++ test/Isl/CodeGen/invariant-load-preload-base-pointer-origin-first.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -polly-invariant-load-hoisting=true \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -S -polly-codegen -polly-invariant-load-hoisting=true < %s ; ; Check that we generate valid code as we did non preload the base pointer Index: test/Isl/CodeGen/invariant_cannot_handle_void.ll =================================================================== --- test/Isl/CodeGen/invariant_cannot_handle_void.ll +++ test/Isl/CodeGen/invariant_cannot_handle_void.ll @@ -1,4 +1,9 @@ +; RUN: opt %loadPolly -disable-output -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --check-prefix=SCOP ; RUN: opt %loadPolly -analyze -polly-scops -polly-invariant-load-hoisting=true %s | FileCheck %s --check-prefix=SCOP +; RUN: opt %loadPolly -S -polly-invariant-load-hoisting=true \ +; RUN: -passes=polly-codegen %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -S -polly-codegen -polly-invariant-load-hoisting=true %s | FileCheck %s ; ; The offset of the %tmp1 load wrt. to %buff (62 bytes) is not divisible Index: test/Isl/CodeGen/invariant_load.ll =================================================================== --- test/Isl/CodeGen/invariant_load.ll +++ test/Isl/CodeGen/invariant_load.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -S < %s | FileCheck %s ; ; CHECK-LABEL: polly.preload.begin: Index: test/Isl/CodeGen/invariant_load_address_space.ll =================================================================== --- test/Isl/CodeGen/invariant_load_address_space.ll +++ test/Isl/CodeGen/invariant_load_address_space.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -S < %s | FileCheck %s ; ; CHECK-LABEL: polly.preload.begin: Index: test/Isl/CodeGen/invariant_load_alias_metadata.ll =================================================================== --- test/Isl/CodeGen/invariant_load_alias_metadata.ll +++ test/Isl/CodeGen/invariant_load_alias_metadata.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true \ ; RUN: -S < %s | FileCheck %s ; Index: test/Isl/CodeGen/invariant_load_base_pointer.ll =================================================================== --- test/Isl/CodeGen/invariant_load_base_pointer.ll +++ test/Isl/CodeGen/invariant_load_base_pointer.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true \ +; RUN: -polly-ignore-aliasing -polly-process-unprofitable -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -polly-ignore-aliasing -polly-process-unprofitable -S < %s | FileCheck %s ; ; CHECK-LABEL: polly.preload.begin: Index: test/Isl/CodeGen/invariant_load_base_pointer_conditional.ll =================================================================== --- test/Isl/CodeGen/invariant_load_base_pointer_conditional.ll +++ test/Isl/CodeGen/invariant_load_base_pointer_conditional.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true \ +; RUN: -polly-ignore-aliasing -polly-process-unprofitable -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -polly-ignore-aliasing -polly-process-unprofitable -S < %s | FileCheck %s ; ; CHECK-LABEL: polly.preload.begin: Index: test/Isl/CodeGen/invariant_load_base_pointer_conditional_2.ll =================================================================== --- test/Isl/CodeGen/invariant_load_base_pointer_conditional_2.ll +++ test/Isl/CodeGen/invariant_load_base_pointer_conditional_2.ll @@ -1,5 +1,14 @@ +; RUN: opt %loadPolly -disable-output -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -analyze -polly-scops -polly-invariant-load-hoisting=true < %s | FileCheck %s +; RUN: opt %loadPolly -S -polly-invariant-load-hoisting=true \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s \ +; RUN: --check-prefix=IR ; RUN: opt %loadPolly -S -polly-codegen -polly-invariant-load-hoisting=true < %s | FileCheck %s --check-prefix=IR +; RUN: opt %loadPolly -S -polly-invariant-load-hoisting=true \ +; RUN: --polly-overflow-tracking=always -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=IRA ; RUN: opt %loadPolly -S -polly-codegen -polly-invariant-load-hoisting=true --polly-overflow-tracking=always < %s | FileCheck %s --check-prefix=IRA ; ; As (p + q) can overflow we have to check that we load from Index: test/Isl/CodeGen/invariant_load_canonicalize_array_baseptrs.ll =================================================================== --- test/Isl/CodeGen/invariant_load_canonicalize_array_baseptrs.ll +++ test/Isl/CodeGen/invariant_load_canonicalize_array_baseptrs.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S < %s -polly-invariant-load-hoisting \ +; RUN: -passes=polly-codegen 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s \ ; RUN: -polly-invariant-load-hoisting \ ; RUN: | FileCheck %s Index: test/Isl/CodeGen/invariant_load_condition.ll =================================================================== --- test/Isl/CodeGen/invariant_load_condition.ll +++ test/Isl/CodeGen/invariant_load_condition.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-process-unprofitable \ +; RUN: -polly-invariant-load-hoisting=true -S -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-process-unprofitable -polly-codegen -polly-invariant-load-hoisting=true -S < %s | FileCheck %s ; ; CHECK-LABEL: polly.preload.begin: Index: test/Isl/CodeGen/invariant_load_different_sized_types.ll =================================================================== --- test/Isl/CodeGen/invariant_load_different_sized_types.ll +++ test/Isl/CodeGen/invariant_load_different_sized_types.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -S \ +; RUN: -polly-allow-differing-element-types -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -S \ ; RUN: -polly-allow-differing-element-types < %s | FileCheck %s Index: test/Isl/CodeGen/invariant_load_escaping.ll =================================================================== --- test/Isl/CodeGen/invariant_load_escaping.ll +++ test/Isl/CodeGen/invariant_load_escaping.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -S < %s | FileCheck %s ; ; int f(int *A, int *B) { Index: test/Isl/CodeGen/invariant_load_escaping_second_scop.ll =================================================================== --- test/Isl/CodeGen/invariant_load_escaping_second_scop.ll +++ test/Isl/CodeGen/invariant_load_escaping_second_scop.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true \ +; RUN: -polly-process-unprofitable -S -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -polly-process-unprofitable -S < %s | FileCheck %s ; ; void fence(void); Index: test/Isl/CodeGen/invariant_load_hoist_alignment.ll =================================================================== --- test/Isl/CodeGen/invariant_load_hoist_alignment.ll +++ test/Isl/CodeGen/invariant_load_hoist_alignment.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-vectorizer=polly -S \ +; RUN: -polly-invariant-load-hoisting=true -passes=polly-codegen \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-codegen -polly-vectorizer=polly -S \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/invariant_load_in_non_affine_subregion.ll =================================================================== --- test/Isl/CodeGen/invariant_load_in_non_affine_subregion.ll +++ test/Isl/CodeGen/invariant_load_in_non_affine_subregion.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -S < %s | FileCheck %s ; ; This crashed at some point as the invariant load is in a non-affine Index: test/Isl/CodeGen/invariant_load_loop_ub.ll =================================================================== --- test/Isl/CodeGen/invariant_load_loop_ub.ll +++ test/Isl/CodeGen/invariant_load_loop_ub.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true \ +; RUN: -polly-process-unprofitable -S -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -polly-process-unprofitable -S < %s | FileCheck %s ; ; CHECK: polly.start Index: test/Isl/CodeGen/invariant_load_not_executed_but_in_parameters.ll =================================================================== --- test/Isl/CodeGen/invariant_load_not_executed_but_in_parameters.ll +++ test/Isl/CodeGen/invariant_load_not_executed_but_in_parameters.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -analyze < %s ; ; Check that this does not crash as the invariant load is not executed (thus Index: test/Isl/CodeGen/invariant_load_outermost.ll =================================================================== --- test/Isl/CodeGen/invariant_load_outermost.ll +++ test/Isl/CodeGen/invariant_load_outermost.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -S < %s | FileCheck %s ; CHECK: polly.start Index: test/Isl/CodeGen/invariant_load_parameters_cyclic_dependence.ll =================================================================== --- test/Isl/CodeGen/invariant_load_parameters_cyclic_dependence.ll +++ test/Isl/CodeGen/invariant_load_parameters_cyclic_dependence.ll @@ -1,4 +1,9 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --check-prefix=SCOP ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s --check-prefix=SCOP +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -S < %s | FileCheck %s ; ; SCOP: Assumed Context: Index: test/Isl/CodeGen/invariant_load_ptr_ptr_noalias.ll =================================================================== --- test/Isl/CodeGen/invariant_load_ptr_ptr_noalias.ll +++ test/Isl/CodeGen/invariant_load_ptr_ptr_noalias.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-process-unprofitable \ +; RUN: -polly-invariant-load-hoisting=true -polly-ignore-aliasing -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-process-unprofitable -polly-codegen -polly-invariant-load-hoisting=true -polly-ignore-aliasing -S < %s | FileCheck %s ; ; CHECK-LABEL: polly.preload.begin: Index: test/Isl/CodeGen/invariant_load_scalar_dep.ll =================================================================== --- test/Isl/CodeGen/invariant_load_scalar_dep.ll +++ test/Isl/CodeGen/invariant_load_scalar_dep.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true \ +; RUN: -polly-ignore-aliasing -polly-process-unprofitable -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -polly-ignore-aliasing -polly-process-unprofitable -S < %s | FileCheck %s ; ; CHECK-LABEL: polly.preload.begin: Index: test/Isl/CodeGen/invariant_load_scalar_escape_alloca_sharing.ll =================================================================== --- test/Isl/CodeGen/invariant_load_scalar_escape_alloca_sharing.ll +++ test/Isl/CodeGen/invariant_load_scalar_escape_alloca_sharing.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -S < %s | FileCheck %s ; ; Verify the preloaded %tmp0 is stored and communicated in the same alloca. Index: test/Isl/CodeGen/invariant_loads_from_struct_with_different_types_1.ll =================================================================== --- test/Isl/CodeGen/invariant_loads_from_struct_with_different_types_1.ll +++ test/Isl/CodeGen/invariant_loads_from_struct_with_different_types_1.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -passes=polly-codegen\ +; RUN: < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true < %s ; ; Check we do not crash even though we pre-load values with different types Index: test/Isl/CodeGen/invariant_loads_from_struct_with_different_types_2.ll =================================================================== --- test/Isl/CodeGen/invariant_loads_from_struct_with_different_types_2.ll +++ test/Isl/CodeGen/invariant_loads_from_struct_with_different_types_2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -passes=polly-codegen\ +; RUN: < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true < %s ; ; Check we do not crash even though we pre-load values with different types Index: test/Isl/CodeGen/invariant_loads_ignore_parameter_bounds.ll =================================================================== --- test/Isl/CodeGen/invariant_loads_ignore_parameter_bounds.ll +++ test/Isl/CodeGen/invariant_loads_ignore_parameter_bounds.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting \ +; RUN: -polly-ignore-parameter-bounds -S -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting \ ; RUN: -polly-ignore-parameter-bounds -S < %s | FileCheck %s Index: test/Isl/CodeGen/invariant_verify_function_failed.ll =================================================================== --- test/Isl/CodeGen/invariant_verify_function_failed.ll +++ test/Isl/CodeGen/invariant_verify_function_failed.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=function(print,scop(polly-codegen))" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-detect -polly-codegen -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s ; ; This crashed at some point as the pointer returned by the call Index: test/Isl/CodeGen/invariant_verify_function_failed_2.ll =================================================================== --- test/Isl/CodeGen/invariant_verify_function_failed_2.ll +++ test/Isl/CodeGen/invariant_verify_function_failed_2.ll @@ -1,6 +1,11 @@ +; RUN: opt %loadPolly -S -disable-output -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s -check-prefix=SCOPS ; RUN: opt %loadPolly -S -polly-scops -analyze \ ; RUN: -polly-invariant-load-hoisting=true %s \ ; RUN: | FileCheck %s -check-prefix=SCOPS +; RUN: opt %loadPolly -S -polly-invariant-load-hoisting=true \ +; RUN: -passes=polly-codegen %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -S -polly-codegen -polly-invariant-load-hoisting=true %s | FileCheck %s ; ; Check we generate valid code. Index: test/Isl/CodeGen/large-numbers-in-boundary-context.ll =================================================================== --- test/Isl/CodeGen/large-numbers-in-boundary-context.ll +++ test/Isl/CodeGen/large-numbers-in-boundary-context.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -S -polly-codegen < %s | FileCheck %s ; XFAIL: * ; Index: test/Isl/CodeGen/loop-invariant-load-type-mismatch.ll =================================================================== --- test/Isl/CodeGen/loop-invariant-load-type-mismatch.ll +++ test/Isl/CodeGen/loop-invariant-load-type-mismatch.ll @@ -1,3 +1,4 @@ +; RUN: opt %loadPolly -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen < %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" Index: test/Isl/CodeGen/loop_with_condition.ll =================================================================== --- test/Isl/CodeGen/loop_with_condition.ll +++ test/Isl/CodeGen/loop_with_condition.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-ast -analyze < %s | FileCheck %s ;#include Index: test/Isl/CodeGen/loop_with_condition_2.ll =================================================================== --- test/Isl/CodeGen/loop_with_condition_2.ll +++ test/Isl/CodeGen/loop_with_condition_2.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-ast-detect-parallel -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa < %s 2>&1 | FileCheck \ +; RUN: %s ; RUN: opt %loadPolly -basicaa -polly-ast -polly-ast-detect-parallel -analyze < %s | FileCheck %s ; Verify that we actually detect this loop as the innermost loop even though Index: test/Isl/CodeGen/loop_with_condition_ineq.ll =================================================================== --- test/Isl/CodeGen/loop_with_condition_ineq.ll +++ test/Isl/CodeGen/loop_with_condition_ineq.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-ast -analyze < %s | FileCheck %s ;#include Index: test/Isl/CodeGen/loop_with_condition_nested.ll =================================================================== --- test/Isl/CodeGen/loop_with_condition_nested.ll +++ test/Isl/CodeGen/loop_with_condition_nested.ll @@ -1,4 +1,9 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-ast -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output \ +; RUN: "-passes=function(scop(polly-codegen),print)" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s -check-prefix=LOOPS ; RUN: opt %loadPolly -basicaa -polly-codegen -loops -analyze < %s | FileCheck %s -check-prefix=LOOPS Index: test/Isl/CodeGen/loop_with_conditional_entry_edge_split_hard_case.ll =================================================================== --- test/Isl/CodeGen/loop_with_conditional_entry_edge_split_hard_case.ll +++ test/Isl/CodeGen/loop_with_conditional_entry_edge_split_hard_case.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; ; Test case to trigger the hard way of creating a unique entering Index: test/Isl/CodeGen/multidim-non-matching-typesize-2.ll =================================================================== --- test/Isl/CodeGen/multidim-non-matching-typesize-2.ll +++ test/Isl/CodeGen/multidim-non-matching-typesize-2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-basicaa -S -passes=polly-codegen < %s 2>&1 | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -disable-basicaa -polly-codegen \ ; RUN: -S < %s | FileCheck %s ; CHECK: polly Index: test/Isl/CodeGen/multidim-non-matching-typesize.ll =================================================================== --- test/Isl/CodeGen/multidim-non-matching-typesize.ll +++ test/Isl/CodeGen/multidim-non-matching-typesize.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-basicaa -S -passes=polly-codegen < %s 2>&1 | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -disable-basicaa -polly-codegen \ ; RUN: -S < %s | FileCheck %s Index: test/Isl/CodeGen/multidim_2d_parametric_array_static_loop_bounds.ll =================================================================== --- test/Isl/CodeGen/multidim_2d_parametric_array_static_loop_bounds.ll +++ test/Isl/CodeGen/multidim_2d_parametric_array_static_loop_bounds.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" Index: test/Isl/CodeGen/multidim_alias_check.ll =================================================================== --- test/Isl/CodeGen/multidim_alias_check.ll +++ test/Isl/CodeGen/multidim_alias_check.ll @@ -1,3 +1,4 @@ +; RUN: opt %loadPolly -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen < %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" Index: test/Isl/CodeGen/multiple-scops-in-a-row.ll =================================================================== --- test/Isl/CodeGen/multiple-scops-in-a-row.ll +++ test/Isl/CodeGen/multiple-scops-in-a-row.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -S -polly-codegen < %s | FileCheck %s ; This test case has two scops in a row. When code generating the first scop, Index: test/Isl/CodeGen/multiple-types-invariant-load-2.ll =================================================================== --- test/Isl/CodeGen/multiple-types-invariant-load-2.ll +++ test/Isl/CodeGen/multiple-types-invariant-load-2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -polly-allow-differing-element-types \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S \ ; RUN: -polly-allow-differing-element-types < %s | FileCheck %s Index: test/Isl/CodeGen/multiple-types-invariant-load.ll =================================================================== --- test/Isl/CodeGen/multiple-types-invariant-load.ll +++ test/Isl/CodeGen/multiple-types-invariant-load.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-allow-differing-element-types -S \ +; RUN: -polly-invariant-load-hoisting=true -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-allow-differing-element-types -polly-codegen -S \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s Index: test/Isl/CodeGen/multiple_sai_fro_same_base_address.ll =================================================================== --- test/Isl/CodeGen/multiple_sai_fro_same_base_address.ll +++ test/Isl/CodeGen/multiple_sai_fro_same_base_address.ll @@ -1,4 +1,10 @@ +; RUN: opt %loadPolly -polly-position=before-vectorizer -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --check-prefix=SCOP ; RUN: opt %loadPolly -polly-position=before-vectorizer -polly-scops -analyze < %s | FileCheck %s --check-prefix=SCOP +; RUN: opt %loadPolly -polly-position=before-vectorizer -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s \ +; RUN: --check-prefix=IR ; RUN: opt %loadPolly -polly-position=before-vectorizer -polly-codegen -S < %s | FileCheck %s --check-prefix=IR ; The IR has two ScopArrayInfo for the value %next.0. This used to produce two Index: test/Isl/CodeGen/no-overflow-tracking.ll =================================================================== --- test/Isl/CodeGen/no-overflow-tracking.ll +++ test/Isl/CodeGen/no-overflow-tracking.ll @@ -1,5 +1,11 @@ +; RUN: opt %loadPolly -disable-output -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -analyze -polly-scops \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s +; RUN: opt %loadPolly -S -polly-overflow-tracking=never \ +; RUN: -polly-invariant-load-hoisting=true -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=IR ; RUN: opt %loadPolly -S -polly-codegen -polly-overflow-tracking=never \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s --check-prefix=IR ; Index: test/Isl/CodeGen/no_guard_bb.ll =================================================================== --- test/Isl/CodeGen/no_guard_bb.ll +++ test/Isl/CodeGen/no_guard_bb.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -verify-dom-info -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-codegen -S -verify-dom-info < %s | FileCheck %s ; ; CHECK-NOT: br i1 true, label %polly.{{.*}}, label %polly.{{.*}} Index: test/Isl/CodeGen/non-affine-dominance-generated-entering.ll =================================================================== --- test/Isl/CodeGen/non-affine-dominance-generated-entering.ll +++ test/Isl/CodeGen/non-affine-dominance-generated-entering.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; ; llvm.org/PR25439 Index: test/Isl/CodeGen/non-affine-exit-node-dominance.ll =================================================================== --- test/Isl/CodeGen/non-affine-exit-node-dominance.ll +++ test/Isl/CodeGen/non-affine-exit-node-dominance.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; ; llvm.org/PR25439 Index: test/Isl/CodeGen/non-affine-phi-node-expansion-2.ll =================================================================== --- test/Isl/CodeGen/non-affine-phi-node-expansion-2.ll +++ test/Isl/CodeGen/non-affine-phi-node-expansion-2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen \ ; RUN: -S < %s | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" Index: test/Isl/CodeGen/non-affine-phi-node-expansion-3.ll =================================================================== --- test/Isl/CodeGen/non-affine-phi-node-expansion-3.ll +++ test/Isl/CodeGen/non-affine-phi-node-expansion-3.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen \ ; RUN: -S < %s | FileCheck %s Index: test/Isl/CodeGen/non-affine-phi-node-expansion-4.ll =================================================================== --- test/Isl/CodeGen/non-affine-phi-node-expansion-4.ll +++ test/Isl/CodeGen/non-affine-phi-node-expansion-4.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen \ ; RUN: -S < %s | FileCheck %s Index: test/Isl/CodeGen/non-affine-phi-node-expansion.ll =================================================================== --- test/Isl/CodeGen/non-affine-phi-node-expansion.ll +++ test/Isl/CodeGen/non-affine-phi-node-expansion.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen \ ; RUN: -S < %s | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" Index: test/Isl/CodeGen/non-affine-region-exit-phi-incoming-synthesize-2.ll =================================================================== --- test/Isl/CodeGen/non-affine-region-exit-phi-incoming-synthesize-2.ll +++ test/Isl/CodeGen/non-affine-region-exit-phi-incoming-synthesize-2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; ; This caused the code generation to generate invalid code as the same operand Index: test/Isl/CodeGen/non-affine-region-exit-phi-incoming-synthesize.ll =================================================================== --- test/Isl/CodeGen/non-affine-region-exit-phi-incoming-synthesize.ll +++ test/Isl/CodeGen/non-affine-region-exit-phi-incoming-synthesize.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; ; This caused the code generation to generate invalid code as the same BBMap was Index: test/Isl/CodeGen/non-affine-region-implicit-store.ll =================================================================== --- test/Isl/CodeGen/non-affine-region-implicit-store.ll +++ test/Isl/CodeGen/non-affine-region-implicit-store.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; ; llvm.org/PR25438 Index: test/Isl/CodeGen/non-affine-region-phi-references-in-scop-value.ll =================================================================== --- test/Isl/CodeGen/non-affine-region-phi-references-in-scop-value.ll +++ test/Isl/CodeGen/non-affine-region-phi-references-in-scop-value.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-allow-nonaffine-loops -S -passes=polly-codegen < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-allow-nonaffine-loops \ ; RUN: -S < %s | FileCheck %s Index: test/Isl/CodeGen/non-affine-subregion-dominance-reuse.ll =================================================================== --- test/Isl/CodeGen/non-affine-subregion-dominance-reuse.ll +++ test/Isl/CodeGen/non-affine-subregion-dominance-reuse.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -verify-dom-info -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S -verify-dom-info \ ; RUN: < %s | FileCheck %s ; Index: test/Isl/CodeGen/non-affine-switch.ll =================================================================== --- test/Isl/CodeGen/non-affine-switch.ll +++ test/Isl/CodeGen/non-affine-switch.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly \ ; RUN: -S -polly-codegen < %s | FileCheck %s ; Index: test/Isl/CodeGen/non-affine-synthesized-in-branch.ll =================================================================== --- test/Isl/CodeGen/non-affine-synthesized-in-branch.ll +++ test/Isl/CodeGen/non-affine-synthesized-in-branch.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-process-unprofitable -S -passes=polly-codegen < %s\ +; RUN: 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-process-unprofitable -polly-codegen -S < %s | FileCheck %s ; ; llvm.org/PR25412 Index: test/Isl/CodeGen/non-hoisted-load-needed-as-base-ptr.ll =================================================================== --- test/Isl/CodeGen/non-hoisted-load-needed-as-base-ptr.ll +++ test/Isl/CodeGen/non-hoisted-load-needed-as-base-ptr.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output -passes=polly-codegen \ +; RUN: -aa-pipeline=type-based-aa %s 2>&1 ; RUN: opt %loadPolly -tbaa -polly-codegen -disable-output %s ; target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" Index: test/Isl/CodeGen/non_affine_float_compare.ll =================================================================== --- test/Isl/CodeGen/non_affine_float_compare.ll +++ test/Isl/CodeGen/non_affine_float_compare.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-allow-nonaffine-branches -S -verify-dom-info \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen \ ; RUN: -polly-allow-nonaffine-branches -S -verify-dom-info \ ; RUN: < %s | FileCheck %s Index: test/Isl/CodeGen/only_non_affine_error_region.ll =================================================================== --- test/Isl/CodeGen/only_non_affine_error_region.ll +++ test/Isl/CodeGen/only_non_affine_error_region.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; ; CHECK-NOT: polly.start Index: test/Isl/CodeGen/openmp_limit_threads.ll =================================================================== --- test/Isl/CodeGen/openmp_limit_threads.ll +++ test/Isl/CodeGen/openmp_limit_threads.ll @@ -1,5 +1,13 @@ +; RUN: opt %loadPolly -polly-parallel -S -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=AUTO ; RUN: opt %loadPolly -polly-codegen -polly-parallel -S < %s | FileCheck %s --check-prefix=AUTO +; RUN: opt %loadPolly -polly-parallel -polly-num-threads=1 -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s \ +; RUN: --check-prefix=ONE ; RUN: opt %loadPolly -polly-codegen -polly-parallel -polly-num-threads=1 -S < %s | FileCheck %s --check-prefix=ONE +; RUN: opt %loadPolly -polly-parallel -polly-num-threads=4 -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s \ +; RUN: --check-prefix=FOUR ; RUN: opt %loadPolly -polly-codegen -polly-parallel -polly-num-threads=4 -S < %s | FileCheck %s --check-prefix=FOUR ; ; AUTO: call void @GOMP_parallel_loop_runtime_start(void (i8*)* @jd_polly_subfn, i8* %polly.par.userContext{{[0-9]*}}, i32 0, i64 0, i64 1024, i64 1) Index: test/Isl/CodeGen/out-of-scop-phi-node-use.ll =================================================================== --- test/Isl/CodeGen/out-of-scop-phi-node-use.ll +++ test/Isl/CodeGen/out-of-scop-phi-node-use.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" Index: test/Isl/CodeGen/param_div_div_div_2.ll =================================================================== --- test/Isl/CodeGen/param_div_div_div_2.ll +++ test/Isl/CodeGen/param_div_div_div_2.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s --check-prefix=IR ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s --check-prefix=IR ; ; Check that we guard the divisions because we moved them and thereby increased Index: test/Isl/CodeGen/partial_write_full_write_that_appears_partial.ll =================================================================== --- test/Isl/CodeGen/partial_write_full_write_that_appears_partial.ll +++ test/Isl/CodeGen/partial_write_full_write_that_appears_partial.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; CHECK: polly.stmt.if.then81: ; preds = %polly.stmt.if.end75 Index: test/Isl/CodeGen/perf_monitoring.ll =================================================================== --- test/Isl/CodeGen/perf_monitoring.ll +++ test/Isl/CodeGen/perf_monitoring.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-codegen-perf-monitoring -S -passes=polly-codegen <\ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-codegen-perf-monitoring \ ; RUN: -S < %s | FileCheck %s Index: test/Isl/CodeGen/perf_monitoring_cycles_per_scop.ll =================================================================== --- test/Isl/CodeGen/perf_monitoring_cycles_per_scop.ll +++ test/Isl/CodeGen/perf_monitoring_cycles_per_scop.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-codegen-perf-monitoring -S -passes=polly-codegen <\ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-codegen-perf-monitoring \ ; RUN: -S < %s | FileCheck %s Index: test/Isl/CodeGen/perf_monitoring_trip_counts_per_scop.ll =================================================================== --- test/Isl/CodeGen/perf_monitoring_trip_counts_per_scop.ll +++ test/Isl/CodeGen/perf_monitoring_trip_counts_per_scop.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-codegen-perf-monitoring -S -passes=polly-codegen <\ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-codegen-perf-monitoring \ ; RUN: -S < %s | FileCheck %s Index: test/Isl/CodeGen/phi-defined-before-scop.ll =================================================================== --- test/Isl/CodeGen/phi-defined-before-scop.ll +++ test/Isl/CodeGen/phi-defined-before-scop.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; CHECK-LABEL: polly.merge_new_and_old: Index: test/Isl/CodeGen/phi_condition_modeling_1.ll =================================================================== --- test/Isl/CodeGen/phi_condition_modeling_1.ll +++ test/Isl/CodeGen/phi_condition_modeling_1.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -S -polly-codegen < %s | FileCheck %s ; ; void f(int *A, int c, int N) { Index: test/Isl/CodeGen/phi_condition_modeling_2.ll =================================================================== --- test/Isl/CodeGen/phi_condition_modeling_2.ll +++ test/Isl/CodeGen/phi_condition_modeling_2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -S -polly-codegen < %s | FileCheck %s ; ; void f(int *A, int c, int N) { Index: test/Isl/CodeGen/phi_conditional_simple_1.ll =================================================================== --- test/Isl/CodeGen/phi_conditional_simple_1.ll +++ test/Isl/CodeGen/phi_conditional_simple_1.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=AST ; RUN: opt %loadPolly -analyze -polly-ast < %s | FileCheck %s --check-prefix=AST +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -S -polly-codegen < %s | FileCheck %s ; ; void jd(int *A, int c) { Index: test/Isl/CodeGen/phi_in_exit_early_lnt_failure_1.ll =================================================================== --- test/Isl/CodeGen/phi_in_exit_early_lnt_failure_1.ll +++ test/Isl/CodeGen/phi_in_exit_early_lnt_failure_1.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; ; This caused an lnt crash at some point, just verify it will run through. Index: test/Isl/CodeGen/phi_in_exit_early_lnt_failure_2.ll =================================================================== --- test/Isl/CodeGen/phi_in_exit_early_lnt_failure_2.ll +++ test/Isl/CodeGen/phi_in_exit_early_lnt_failure_2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; ; This caused an lnt crash at some point, just verify it will run through and Index: test/Isl/CodeGen/phi_in_exit_early_lnt_failure_3.ll =================================================================== --- test/Isl/CodeGen/phi_in_exit_early_lnt_failure_3.ll +++ test/Isl/CodeGen/phi_in_exit_early_lnt_failure_3.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; ; This caused an lnt crash at some point, just verify it will run through and Index: test/Isl/CodeGen/phi_in_exit_early_lnt_failure_5.ll =================================================================== --- test/Isl/CodeGen/phi_in_exit_early_lnt_failure_5.ll +++ test/Isl/CodeGen/phi_in_exit_early_lnt_failure_5.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; ; This caused an lnt crash at some point, just verify it will run through and Index: test/Isl/CodeGen/phi_loop_carried_float.ll =================================================================== --- test/Isl/CodeGen/phi_loop_carried_float.ll +++ test/Isl/CodeGen/phi_loop_carried_float.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -S -polly-codegen < %s | FileCheck %s ; ; float f(float *A, int N) { Index: test/Isl/CodeGen/phi_loop_carried_float_escape.ll =================================================================== --- test/Isl/CodeGen/phi_loop_carried_float_escape.ll +++ test/Isl/CodeGen/phi_loop_carried_float_escape.ll @@ -1,6 +1,10 @@ +; RUN: opt %loadPolly -S -polly-analyze-read-only-scalars=false \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -S \ ; RUN: -polly-analyze-read-only-scalars=false -polly-codegen < %s | FileCheck %s +; RUN: opt %loadPolly -S -polly-analyze-read-only-scalars=true \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -S \ ; RUN: -polly-analyze-read-only-scalars=true -polly-codegen < %s | FileCheck %s ; Index: test/Isl/CodeGen/phi_scalar_simple_1.ll =================================================================== --- test/Isl/CodeGen/phi_scalar_simple_1.ll +++ test/Isl/CodeGen/phi_scalar_simple_1.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -S -polly-codegen < %s | FileCheck %s ; ; int jd(int *restrict A, int x, int N) { Index: test/Isl/CodeGen/phi_scalar_simple_2.ll =================================================================== --- test/Isl/CodeGen/phi_scalar_simple_2.ll +++ test/Isl/CodeGen/phi_scalar_simple_2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -S -polly-codegen < %s | FileCheck %s ; ; int jd(int *restrict A, int x, int N, int c) { Index: test/Isl/CodeGen/phi_with_multi_exiting_edges_2.ll =================================================================== --- test/Isl/CodeGen/phi_with_multi_exiting_edges_2.ll +++ test/Isl/CodeGen/phi_with_multi_exiting_edges_2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; ; CHECK: polly.merge_new_and_old: Index: test/Isl/CodeGen/phi_with_one_exit_edge.ll =================================================================== --- test/Isl/CodeGen/phi_with_one_exit_edge.ll +++ test/Isl/CodeGen/phi_with_one_exit_edge.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; ; Index: test/Isl/CodeGen/pointer-type-expressions-2.ll =================================================================== --- test/Isl/CodeGen/pointer-type-expressions-2.ll +++ test/Isl/CodeGen/pointer-type-expressions-2.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-ast -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s -check-prefix=CODEGEN ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s -check-prefix=CODEGEN target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" Index: test/Isl/CodeGen/pointer-type-expressions.ll =================================================================== --- test/Isl/CodeGen/pointer-type-expressions.ll +++ test/Isl/CodeGen/pointer-type-expressions.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-ast -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s -check-prefix=CODEGEN ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s -check-prefix=CODEGEN ; void f(int a[], int N, float *P) { Index: test/Isl/CodeGen/pointer-type-pointer-type-comparison.ll =================================================================== --- test/Isl/CodeGen/pointer-type-pointer-type-comparison.ll +++ test/Isl/CodeGen/pointer-type-pointer-type-comparison.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-ast -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s -check-prefix=CODEGEN ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s -check-prefix=CODEGEN ; Index: test/Isl/CodeGen/pointer_rem.ll =================================================================== --- test/Isl/CodeGen/pointer_rem.ll +++ test/Isl/CodeGen/pointer_rem.ll @@ -1,4 +1,10 @@ +; RUN: opt %loadPolly -polly-process-unprofitable -disable-output -S \ +; RUN: "-passes=scop(print)" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=AST ; RUN: opt %loadPolly -polly-process-unprofitable -polly-scops -polly-ast -analyze -S < %s | FileCheck %s --check-prefix=AST +; RUN: opt %loadPolly -polly-process-unprofitable -S \ +; RUN: "-passes=scop(polly-codegen)" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=CODEGEN ; RUN: opt %loadPolly -polly-process-unprofitable -polly-scops -polly-codegen -S < %s | FileCheck %s --check-prefix=CODEGEN target datalayout = "e-m:e-i64:64-i128:128-n8:16:32:64-S128" Index: test/Isl/CodeGen/pr25241.ll =================================================================== --- test/Isl/CodeGen/pr25241.ll +++ test/Isl/CodeGen/pr25241.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; PR25241 (https://llvm.org/bugs/show_bug.cgi?id=25241) Index: test/Isl/CodeGen/ptrtoint_as_parameter.ll =================================================================== --- test/Isl/CodeGen/ptrtoint_as_parameter.ll +++ test/Isl/CodeGen/ptrtoint_as_parameter.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; ; CHECK: polly.split_new_and_old: Index: test/Isl/CodeGen/read-only-scalars.ll =================================================================== --- test/Isl/CodeGen/read-only-scalars.ll +++ test/Isl/CodeGen/read-only-scalars.ll @@ -1,6 +1,12 @@ +; RUN: opt %loadPolly -polly-analyze-read-only-scalars=false -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s \ +; RUN: --allow-empty ; RUN: opt %loadPolly -polly-analyze-read-only-scalars=false -polly-codegen \ ; RUN: \ ; RUN: -S < %s | FileCheck %s +; RUN: opt %loadPolly -polly-analyze-read-only-scalars=true -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s \ +; RUN: -check-prefix=SCALAR ; RUN: opt %loadPolly -polly-analyze-read-only-scalars=true -polly-codegen \ ; RUN: \ ; RUN: -S < %s | FileCheck %s -check-prefix=SCALAR Index: test/Isl/CodeGen/reduction.ll =================================================================== --- test/Isl/CodeGen/reduction.ll +++ test/Isl/CodeGen/reduction.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S < %s 2>&1 -passes=polly-codegen -aa-pipeline=basic-aa \ +; RUN: | not FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s 2>&1 | not FileCheck %s ;#include Index: test/Isl/CodeGen/reduction_2.ll =================================================================== --- test/Isl/CodeGen/reduction_2.ll +++ test/Isl/CodeGen/reduction_2.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" -aa-pipeline=basic-aa < %s 2>&1 | FileCheck \ +; RUN: %s --allow-empty ; RUN: opt %loadPolly -basicaa -polly-ast -analyze \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s Index: test/Isl/CodeGen/reduction_simple_binary.ll =================================================================== --- test/Isl/CodeGen/reduction_simple_binary.ll +++ test/Isl/CodeGen/reduction_simple_binary.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-ast-detect-parallel -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | FileCheck \ +; RUN: %s ; RUN: opt %loadPolly -polly-ast -polly-ast-detect-parallel -analyze < %s | FileCheck %s ; ; CHECK: pragma simd reduction Index: test/Isl/CodeGen/region_exiting-domtree.ll =================================================================== --- test/Isl/CodeGen/region_exiting-domtree.ll +++ test/Isl/CodeGen/region_exiting-domtree.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -verify-dom-info -disable-output -passes=polly-codegen < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen -verify-dom-info -analyze < %s ; Verify that the DominatorTree is preserved correctly for the inserted Index: test/Isl/CodeGen/run-time-condition-with-scev-parameters.ll =================================================================== --- test/Isl/CodeGen/run-time-condition-with-scev-parameters.ll +++ test/Isl/CodeGen/run-time-condition-with-scev-parameters.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=AST ; RUN: opt %loadPolly -polly-ast -analyze < %s | FileCheck %s --check-prefix=AST +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; TODO: FIXME: Simplify the context. Index: test/Isl/CodeGen/run-time-condition.ll =================================================================== --- test/Isl/CodeGen/run-time-condition.ll +++ test/Isl/CodeGen/run-time-condition.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen -aa-pipeline=basic-aa < %s 2>&1 \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-codegen -S < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" Index: test/Isl/CodeGen/scalar-references-used-in-scop-compute.ll =================================================================== --- test/Isl/CodeGen/scalar-references-used-in-scop-compute.ll +++ test/Isl/CodeGen/scalar-references-used-in-scop-compute.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; Test the code generation in the presence of a scalar out-of-scop value being Index: test/Isl/CodeGen/scalar-store-from-same-bb.ll =================================================================== --- test/Isl/CodeGen/scalar-store-from-same-bb.ll +++ test/Isl/CodeGen/scalar-store-from-same-bb.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly \ ; RUN: -polly-codegen -S < %s | FileCheck %s Index: test/Isl/CodeGen/scalar_codegen_crash.ll =================================================================== --- test/Isl/CodeGen/scalar_codegen_crash.ll +++ test/Isl/CodeGen/scalar_codegen_crash.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly \ ; RUN: -polly-codegen -S < %s | FileCheck %s Index: test/Isl/CodeGen/scev-division-invariant-load.ll =================================================================== --- test/Isl/CodeGen/scev-division-invariant-load.ll +++ test/Isl/CodeGen/scev-division-invariant-load.ll @@ -1,3 +1,4 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -S -polly-codegen < %s ; ; Check that we generate valid code as we did not use the preloaded Index: test/Isl/CodeGen/scev.ll =================================================================== --- test/Isl/CodeGen/scev.ll +++ test/Isl/CodeGen/scev.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly "-passes=require" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-detect < %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/scev_expansion_in_nonaffine.ll =================================================================== --- test/Isl/CodeGen/scev_expansion_in_nonaffine.ll +++ test/Isl/CodeGen/scev_expansion_in_nonaffine.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -polly-invariant-load-hoisting=true \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s Index: test/Isl/CodeGen/scop_expander_insert_point.ll =================================================================== --- test/Isl/CodeGen/scop_expander_insert_point.ll +++ test/Isl/CodeGen/scop_expander_insert_point.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -polly-invariant-load-hoisting=true \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s ; Index: test/Isl/CodeGen/scop_expander_segfault.ll =================================================================== --- test/Isl/CodeGen/scop_expander_segfault.ll +++ test/Isl/CodeGen/scop_expander_segfault.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S %s | FileCheck %s ; ; This test was extracted from gcc in SPEC2006 and it crashed our code Index: test/Isl/CodeGen/scop_never_executed_runtime_check_location.ll =================================================================== --- test/Isl/CodeGen/scop_never_executed_runtime_check_location.ll +++ test/Isl/CodeGen/scop_never_executed_runtime_check_location.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; Verify that we generate the runtime check code after the conditional branch Index: test/Isl/CodeGen/select-base-pointer.ll =================================================================== --- test/Isl/CodeGen/select-base-pointer.ll +++ test/Isl/CodeGen/select-base-pointer.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output -passes=polly-codegen \ +; RUN: -aa-pipeline=type-based-aa %s 2>&1 ; RUN: opt %loadPolly -tbaa -polly-codegen -disable-output %s ; ; Check that we do not crash here. Index: test/Isl/CodeGen/sequential_loops.ll =================================================================== --- test/Isl/CodeGen/sequential_loops.ll +++ test/Isl/CodeGen/sequential_loops.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-ast -analyze < %s | FileCheck %s ;#include Index: test/Isl/CodeGen/simple_loop_non_single_exit.ll =================================================================== --- test/Isl/CodeGen/simple_loop_non_single_exit.ll +++ test/Isl/CodeGen/simple_loop_non_single_exit.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s -check-prefix=CHECK-CODE ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s -check-prefix=CHECK-CODE ; void f(long A[], long N) { Index: test/Isl/CodeGen/simple_loop_non_single_exit_2.ll =================================================================== --- test/Isl/CodeGen/simple_loop_non_single_exit_2.ll +++ test/Isl/CodeGen/simple_loop_non_single_exit_2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s -check-prefix=CHECK-CODE ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s -check-prefix=CHECK-CODE ; void f(long A[], long N) { Index: test/Isl/CodeGen/simple_non_single_entry.ll =================================================================== --- test/Isl/CodeGen/simple_non_single_entry.ll +++ test/Isl/CodeGen/simple_non_single_entry.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s -check-prefix=CHECK-CODE ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s -check-prefix=CHECK-CODE ; void f(long A[], long N) { Index: test/Isl/CodeGen/simple_nonaffine_loop.ll =================================================================== --- test/Isl/CodeGen/simple_nonaffine_loop.ll +++ test/Isl/CodeGen/simple_nonaffine_loop.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-allow-nonaffine -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | FileCheck \ +; RUN: %s ; RUN: opt %loadPolly -polly-ast -polly-allow-nonaffine -analyze < %s | FileCheck %s ;#include Index: test/Isl/CodeGen/simple_vec_assign_scalar.ll =================================================================== --- test/Isl/CodeGen/simple_vec_assign_scalar.ll +++ test/Isl/CodeGen/simple_vec_assign_scalar.ll @@ -1,6 +1,12 @@ +; RUN: opt %loadPolly -polly-vectorizer=polly -S \ +; RUN: "-passes=function(scop(polly-codegen),dce)" -aa-pipeline=basic-aa < %s \ +; RUN: 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-codegen \ ; RUN: -polly-vectorizer=polly -dce -S < %s | FileCheck %s +; RUN: opt %loadPolly -polly-vectorizer=stripmine -S \ +; RUN: "-passes=function(scop(polly-codegen),dce)" -aa-pipeline=basic-aa < %s \ +; RUN: 2>&1 | FileCheck %s --check-prefix=STRIPMINE --allow-empty ; RUN: opt %loadPolly -basicaa -polly-codegen -polly-vectorizer=stripmine -dce -S < %s | FileCheck %s --check-prefix=STRIPMINE ;#define N 1024 Index: test/Isl/CodeGen/simple_vec_assign_scalar_2.ll =================================================================== --- test/Isl/CodeGen/simple_vec_assign_scalar_2.ll +++ test/Isl/CodeGen/simple_vec_assign_scalar_2.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-vectorizer=polly -S \ +; RUN: "-passes=function(scop(polly-codegen),dce)" -aa-pipeline=basic-aa < %s \ +; RUN: 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-codegen -polly-vectorizer=polly -dce -S < %s | FileCheck %s ;#define N 1024 Index: test/Isl/CodeGen/simple_vec_call.ll =================================================================== --- test/Isl/CodeGen/simple_vec_call.ll +++ test/Isl/CodeGen/simple_vec_call.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-vectorizer=polly -S \ +; RUN: -polly-invariant-load-hoisting=true -passes=polly-codegen \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-codegen -polly-vectorizer=polly -S \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/simple_vec_call_2.ll =================================================================== --- test/Isl/CodeGen/simple_vec_call_2.ll +++ test/Isl/CodeGen/simple_vec_call_2.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-vectorizer=polly \ +; RUN: -polly-invariant-load-hoisting=true -S \ +; RUN: "-passes=function(scop(polly-codegen),dce)" -aa-pipeline=basic-aa < %s \ +; RUN: 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-codegen -polly-vectorizer=polly -dce \ ; RUN: -polly-invariant-load-hoisting=true -S < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/simple_vec_cast.ll =================================================================== --- test/Isl/CodeGen/simple_vec_cast.ll +++ test/Isl/CodeGen/simple_vec_cast.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-vectorizer=polly \ +; RUN: -polly-invariant-load-hoisting=true -S \ +; RUN: "-passes=function(scop(polly-codegen),dce)" -aa-pipeline=basic-aa < %s \ +; RUN: 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-codegen -polly-vectorizer=polly \ ; RUN: -polly-invariant-load-hoisting=true -dce -S < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/simple_vec_const.ll =================================================================== --- test/Isl/CodeGen/simple_vec_const.ll +++ test/Isl/CodeGen/simple_vec_const.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-vectorizer=polly -S \ +; RUN: -polly-invariant-load-hoisting=true -passes=polly-codegen \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-codegen -polly-vectorizer=polly -S \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s Index: test/Isl/CodeGen/simple_vec_large_width.ll =================================================================== --- test/Isl/CodeGen/simple_vec_large_width.ll +++ test/Isl/CodeGen/simple_vec_large_width.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-vectorizer=polly -S \ +; RUN: "-passes=function(scop(polly-codegen),dce)" -aa-pipeline=basic-aa < %s \ +; RUN: 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-codegen -polly-vectorizer=polly -dce -S < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/simple_vec_ptr_ptr_ty.ll =================================================================== --- test/Isl/CodeGen/simple_vec_ptr_ptr_ty.ll +++ test/Isl/CodeGen/simple_vec_ptr_ptr_ty.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-vectorizer=polly -S \ +; RUN: -polly-invariant-load-hoisting=true -passes=polly-codegen \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-codegen -polly-vectorizer=polly -S \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/simple_vec_stride_negative_one.ll =================================================================== --- test/Isl/CodeGen/simple_vec_stride_negative_one.ll +++ test/Isl/CodeGen/simple_vec_stride_negative_one.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-vectorizer=polly -S -passes=polly-codegen < %s \ +; RUN: 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-vectorizer=polly -S < %s | FileCheck %s ; ModuleID = 'reverse.c' Index: test/Isl/CodeGen/simple_vec_stride_one.ll =================================================================== --- test/Isl/CodeGen/simple_vec_stride_one.ll +++ test/Isl/CodeGen/simple_vec_stride_one.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-vectorizer=polly < %s -S -passes=polly-codegen \ +; RUN: 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -polly-vectorizer=polly \ ; RUN: < %s -S | FileCheck %s Index: test/Isl/CodeGen/simple_vec_stride_x.ll =================================================================== --- test/Isl/CodeGen/simple_vec_stride_x.ll +++ test/Isl/CodeGen/simple_vec_stride_x.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-vectorizer=polly -S \ +; RUN: "-passes=function(scop(polly-codegen),dce)" -aa-pipeline=basic-aa < %s \ +; RUN: 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-codegen -polly-vectorizer=polly -dce -S < %s | FileCheck %s ;#define N 1024 Index: test/Isl/CodeGen/simple_vec_two_stmts.ll =================================================================== --- test/Isl/CodeGen/simple_vec_two_stmts.ll +++ test/Isl/CodeGen/simple_vec_two_stmts.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-vectorizer=polly -S \ +; RUN: "-passes=function(scop(polly-codegen),dce)" -aa-pipeline=basic-aa < %s \ +; RUN: 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-codegen -polly-vectorizer=polly -dce -S < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/single_do_loop_int_max_iterations.ll =================================================================== --- test/Isl/CodeGen/single_do_loop_int_max_iterations.ll +++ test/Isl/CodeGen/single_do_loop_int_max_iterations.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output -S "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-ast -analyze -S < %s | FileCheck %s ;#define N 20 Index: test/Isl/CodeGen/single_do_loop_int_param_iterations.ll =================================================================== --- test/Isl/CodeGen/single_do_loop_int_param_iterations.ll +++ test/Isl/CodeGen/single_do_loop_int_param_iterations.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-ast -S -analyze < %s | FileCheck %s ; XFAIL: * Index: test/Isl/CodeGen/single_do_loop_ll_max_iterations.ll =================================================================== --- test/Isl/CodeGen/single_do_loop_ll_max_iterations.ll +++ test/Isl/CodeGen/single_do_loop_ll_max_iterations.ll @@ -1,4 +1,7 @@ +; RUN: opt %loadPolly -disable-output -S "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-ast -analyze -S < %s | FileCheck %s +; RUN: opt %loadPolly -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen < %s ;#define N 20 Index: test/Isl/CodeGen/single_do_loop_one_iteration.ll =================================================================== --- test/Isl/CodeGen/single_do_loop_one_iteration.ll +++ test/Isl/CodeGen/single_do_loop_one_iteration.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-ast -S -analyze < %s | FileCheck %s ; XFAIL: * Index: test/Isl/CodeGen/single_do_loop_scev_replace.ll =================================================================== --- test/Isl/CodeGen/single_do_loop_scev_replace.ll +++ test/Isl/CodeGen/single_do_loop_scev_replace.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-ast -analyze < %s | FileCheck %s ;#define N 20 Index: test/Isl/CodeGen/single_loop.ll =================================================================== --- test/Isl/CodeGen/single_loop.ll +++ test/Isl/CodeGen/single_loop.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-ast -analyze < %s | FileCheck %s ;#include Index: test/Isl/CodeGen/single_loop_int_max_iterations.ll =================================================================== --- test/Isl/CodeGen/single_loop_int_max_iterations.ll +++ test/Isl/CodeGen/single_loop_int_max_iterations.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output -S "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-ast -analyze -S < %s | FileCheck %s ;#define N 20 Index: test/Isl/CodeGen/single_loop_ll_max_iterations.ll =================================================================== --- test/Isl/CodeGen/single_loop_ll_max_iterations.ll +++ test/Isl/CodeGen/single_loop_ll_max_iterations.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output -S "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-ast -analyze -S < %s | FileCheck %s ;#include "limits.h" Index: test/Isl/CodeGen/single_loop_one_iteration.ll =================================================================== --- test/Isl/CodeGen/single_loop_one_iteration.ll +++ test/Isl/CodeGen/single_loop_one_iteration.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-ast -analyze < %s | FileCheck %s ;#define N 20 Index: test/Isl/CodeGen/single_loop_param.ll =================================================================== --- test/Isl/CodeGen/single_loop_param.ll +++ test/Isl/CodeGen/single_loop_param.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-ast -analyze < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/single_loop_zero_iterations.ll =================================================================== --- test/Isl/CodeGen/single_loop_zero_iterations.ll +++ test/Isl/CodeGen/single_loop_zero_iterations.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output -S "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s -check-prefix=SCALAR -allow-empty ; RUN: opt %loadPolly -polly-ast -analyze -S < %s | FileCheck %s -check-prefix=SCALAR ;#define N 20 Index: test/Isl/CodeGen/split_edge_of_exit.ll =================================================================== --- test/Isl/CodeGen/split_edge_of_exit.ll +++ test/Isl/CodeGen/split_edge_of_exit.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -verify-region-info -disable-output -passes=polly-codegen\ +; RUN: < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen -verify-region-info -analyze < %s ; ; This is a scop directly precedented by a region, i.e. the scop's entry is the Index: test/Isl/CodeGen/split_edges.ll =================================================================== --- test/Isl/CodeGen/split_edges.ll +++ test/Isl/CodeGen/split_edges.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -verify-region-info -verify-dom-info -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -verify-region-info -verify-dom-info -S < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/split_edges_2.ll =================================================================== --- test/Isl/CodeGen/split_edges_2.ll +++ test/Isl/CodeGen/split_edges_2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -verify-region-info -verify-dom-info -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -verify-region-info -verify-dom-info -S < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/CodeGen/srem-in-other-bb.ll =================================================================== --- test/Isl/CodeGen/srem-in-other-bb.ll +++ test/Isl/CodeGen/srem-in-other-bb.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S \ ; RUN: < %s | FileCheck %s ; Index: test/Isl/CodeGen/stack-overflow-in-load-hoisting.ll =================================================================== --- test/Isl/CodeGen/stack-overflow-in-load-hoisting.ll +++ test/Isl/CodeGen/stack-overflow-in-load-hoisting.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -verify-dom-info -S < %s \ +; RUN: -polly-invariant-load-hoisting=true -passes=polly-codegen 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -verify-dom-info -polly-codegen -S < %s \ ; RUN: -polly-invariant-load-hoisting=true | FileCheck %s ; Index: test/Isl/CodeGen/switch-in-non-affine-region.ll =================================================================== --- test/Isl/CodeGen/switch-in-non-affine-region.ll +++ test/Isl/CodeGen/switch-in-non-affine-region.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly \ ; RUN: -S -polly-codegen < %s | FileCheck %s ; Index: test/Isl/CodeGen/synthesizable_phi_write_after_loop.ll =================================================================== --- test/Isl/CodeGen/synthesizable_phi_write_after_loop.ll +++ test/Isl/CodeGen/synthesizable_phi_write_after_loop.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; ; Check for the correct written value of a scalar phi write whose value is Index: test/Isl/CodeGen/test-invalid-operands-for-select-2.ll =================================================================== --- test/Isl/CodeGen/test-invalid-operands-for-select-2.ll +++ test/Isl/CodeGen/test-invalid-operands-for-select-2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -verify-loop-info -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -S -polly-codegen -verify-loop-info < %s | FileCheck %s ; ; Check that we do not crash as described here: http://llvm.org/bugs/show_bug.cgi?id=21167 Index: test/Isl/CodeGen/test-invalid-operands-for-select.ll =================================================================== --- test/Isl/CodeGen/test-invalid-operands-for-select.ll +++ test/Isl/CodeGen/test-invalid-operands-for-select.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -S -polly-codegen < %s | FileCheck %s ; ; Check that we do not crash as described here: http://llvm.org/PR21167 Index: test/Isl/CodeGen/test.ll =================================================================== --- test/Isl/CodeGen/test.ll +++ test/Isl/CodeGen/test.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output -S "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-ast -analyze -S < %s | FileCheck %s ; XFAIL: * Index: test/Isl/CodeGen/two-loops-right-after-each-other-2.ll =================================================================== --- test/Isl/CodeGen/two-loops-right-after-each-other-2.ll +++ test/Isl/CodeGen/two-loops-right-after-each-other-2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; CHECK: polly.merge_new_and_old: Index: test/Isl/CodeGen/two-scops-in-row-invalidate-scevs.ll =================================================================== --- test/Isl/CodeGen/two-scops-in-row-invalidate-scevs.ll +++ test/Isl/CodeGen/two-scops-in-row-invalidate-scevs.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; ; CHECK-LABEL: for.cond: Index: test/Isl/CodeGen/two-scops-in-row.ll =================================================================== --- test/Isl/CodeGen/two-scops-in-row.ll +++ test/Isl/CodeGen/two-scops-in-row.ll @@ -1,5 +1,10 @@ +; RUN: opt %loadPolly -disable-output -polly-ignore-aliasing \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | FileCheck \ +; RUN: %s -check-prefix=SCALAR ; RUN: opt %loadPolly -polly-ast -analyze -polly-ignore-aliasing < %s | FileCheck %s -check-prefix=SCALAR +; RUN: opt %loadPolly -polly-ignore-aliasing -disable-output \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen -polly-ignore-aliasing -disable-output < %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" Index: test/Isl/CodeGen/udiv_expansion_position.ll =================================================================== --- test/Isl/CodeGen/udiv_expansion_position.ll +++ test/Isl/CodeGen/udiv_expansion_position.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; ; Verify we do not crash when we synthezise code for the udiv in the SCoP. Index: test/Isl/CodeGen/uninitialized_scalar_memory.ll =================================================================== --- test/Isl/CodeGen/uninitialized_scalar_memory.ll +++ test/Isl/CodeGen/uninitialized_scalar_memory.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -S -polly-codegen < %s | FileCheck %s ; ; Verify we initialize the scalar locations reserved for the incoming phi Index: test/Isl/CodeGen/unpredictable-loop-unsynthesizable.ll =================================================================== --- test/Isl/CodeGen/unpredictable-loop-unsynthesizable.ll +++ test/Isl/CodeGen/unpredictable-loop-unsynthesizable.ll @@ -1,7 +1,17 @@ -; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze \ -; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s -; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-codegen -analyze \ -; RUN: -polly-invariant-load-hoisting=true < %s +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s +; +; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze \ +; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s +; +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: -polly-invariant-load-hoisting=true -passes=polly-codegen \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 +; +; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-codegen -analyze \ +; RUN: -polly-invariant-load-hoisting=true < %s ; The loop for.body is a scop with invariant load hoisting, but does not ; terminate predictably for ScalarEvolution. The scalar %1 therefore is not Index: test/Isl/CodeGen/variant_load_empty_domain.ll =================================================================== --- test/Isl/CodeGen/variant_load_empty_domain.ll +++ test/Isl/CodeGen/variant_load_empty_domain.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen -analyze < %s ; ; Index: test/Isl/CodeGen/whole-scop-non-affine-subregion.ll =================================================================== --- test/Isl/CodeGen/whole-scop-non-affine-subregion.ll +++ test/Isl/CodeGen/whole-scop-non-affine-subregion.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly \ ; RUN: -polly-codegen -S < %s | FileCheck %s Index: test/Isl/single_loop_param_less_equal.ll =================================================================== --- test/Isl/single_loop_param_less_equal.ll +++ test/Isl/single_loop_param_less_equal.ll @@ -1,5 +1,12 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-ast -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s -check-prefix=CODEGEN ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s -check-prefix=CODEGEN +; RUN: opt %loadPolly -disable-output \ +; RUN: "-passes=function(scop(polly-codegen),print)" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s -check-prefix=LOOPS ; RUN: opt %loadPolly -polly-codegen -loops -analyze < %s | FileCheck %s -check-prefix=LOOPS target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/single_loop_param_less_than.ll =================================================================== --- test/Isl/single_loop_param_less_than.ll +++ test/Isl/single_loop_param_less_than.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-ast -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s -check-prefix=CODEGEN ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s -check-prefix=CODEGEN target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/Isl/single_loop_uint_max_iterations.ll =================================================================== --- test/Isl/single_loop_uint_max_iterations.ll +++ test/Isl/single_loop_uint_max_iterations.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-ast -S -analyze < %s | FileCheck %s ; XFAIL: * Index: test/Isl/single_loop_ull_max_iterations.ll =================================================================== --- test/Isl/single_loop_ull_max_iterations.ll +++ test/Isl/single_loop_ull_max_iterations.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-ast -S -analyze < %s | FileCheck %s ; XFAIL: * Index: test/ScopDetect/aliasing_parametric_simple_1.ll =================================================================== --- test/ScopDetect/aliasing_parametric_simple_1.ll +++ test/ScopDetect/aliasing_parametric_simple_1.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s ; ; CHECK: Valid Region for Scop: Index: test/ScopDetect/aliasing_parametric_simple_2.ll =================================================================== --- test/ScopDetect/aliasing_parametric_simple_2.ll +++ test/ScopDetect/aliasing_parametric_simple_2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s ; ; CHECK: Valid Region for Scop: Index: test/ScopDetect/aliasing_simple_1.ll =================================================================== --- test/ScopDetect/aliasing_simple_1.ll +++ test/ScopDetect/aliasing_simple_1.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s ; ; CHECK: Valid Region for Scop: Index: test/ScopDetect/aliasing_simple_2.ll =================================================================== --- test/ScopDetect/aliasing_simple_2.ll +++ test/ScopDetect/aliasing_simple_2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s ; ; CHECK: Valid Region for Scop: Index: test/ScopDetect/base_pointer.ll =================================================================== --- test/ScopDetect/base_pointer.ll +++ test/ScopDetect/base_pointer.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-basicaa -polly-invariant-load-hoisting=true \ +; RUN: -disable-output "-passes=print" < %s 2>&1 | FileCheck %s ; RUN: opt %loadPolly -disable-basicaa -polly-detect -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s Index: test/ScopDetect/cross_loop_non_single_exit.ll =================================================================== --- test/ScopDetect/cross_loop_non_single_exit.ll +++ test/ScopDetect/cross_loop_non_single_exit.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s ; void f(long A[], long N) { Index: test/ScopDetect/cross_loop_non_single_exit_2.ll =================================================================== --- test/ScopDetect/cross_loop_non_single_exit_2.ll +++ test/ScopDetect/cross_loop_non_single_exit_2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s ; void f(long A[], long N) { Index: test/ScopDetect/dependency_to_phi_node_outside_of_region.ll =================================================================== --- test/ScopDetect/dependency_to_phi_node_outside_of_region.ll +++ test/ScopDetect/dependency_to_phi_node_outside_of_region.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=require" < %s 2>&1\ +; RUN: -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-detect -disable-output < %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128" Index: test/ScopDetect/error-block-always-executed.ll =================================================================== --- test/ScopDetect/error-block-always-executed.ll +++ test/ScopDetect/error-block-always-executed.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-detect -analyze < %s \ ; RUN: | FileCheck %s ; Index: test/ScopDetect/error-block-referenced-from-scop.ll =================================================================== --- test/ScopDetect/error-block-referenced-from-scop.ll +++ test/ScopDetect/error-block-referenced-from-scop.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-detect -analyze < %s \ ; RUN: | FileCheck %s ; Index: test/ScopDetect/expand-region-correctly-2.ll =================================================================== --- test/ScopDetect/expand-region-correctly-2.ll +++ test/ScopDetect/expand-region-correctly-2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect \ ; RUN: -analyze < %s | FileCheck %s ; Index: test/ScopDetect/expand-region-correctly.ll =================================================================== --- test/ScopDetect/expand-region-correctly.ll +++ test/ScopDetect/expand-region-correctly.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect \ ; RUN: -analyze < %s | FileCheck %s Index: test/ScopDetect/index_from_unpredictable_loop.ll =================================================================== --- test/ScopDetect/index_from_unpredictable_loop.ll +++ test/ScopDetect/index_from_unpredictable_loop.ll @@ -1,4 +1,9 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s --check-prefix=AFFINE ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s --check-prefix=AFFINE +; RUN: opt %loadPolly -polly-allow-nonaffine -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --check-prefix=NONAFFINE ; RUN: opt %loadPolly -polly-scops -polly-allow-nonaffine -analyze < %s | FileCheck %s --check-prefix=NONAFFINE ; The loop for.body => for.inc has an unpredictable iteration count could due to Index: test/ScopDetect/indvars.ll =================================================================== --- test/ScopDetect/indvars.ll +++ test/ScopDetect/indvars.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output \ +; RUN: "-passes=function(print,scop(polly-codegen))" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -analyze -polly-detect -polly-codegen < %s | FileCheck %s ; target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/ScopDetect/intrinsics_1.ll =================================================================== --- test/ScopDetect/intrinsics_1.ll +++ test/ScopDetect/intrinsics_1.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-detect -analyze < %s | FileCheck %s ; ; CHECK: Valid Region for Scop: for.cond => for.end Index: test/ScopDetect/intrinsics_2.ll =================================================================== --- test/ScopDetect/intrinsics_2.ll +++ test/ScopDetect/intrinsics_2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-detect -analyze < %s | FileCheck %s ; ; Verify that we allow the lifetime markers for the tmp array. Index: test/ScopDetect/intrinsics_3.ll =================================================================== --- test/ScopDetect/intrinsics_3.ll +++ test/ScopDetect/intrinsics_3.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-detect -analyze < %s | FileCheck %s ; ; Verify that we allow the misc intrinsics. Index: test/ScopDetect/invalid-latch-conditions.ll =================================================================== --- test/ScopDetect/invalid-latch-conditions.ll +++ test/ScopDetect/invalid-latch-conditions.ll @@ -1,9 +1,19 @@ +; RUN: opt %loadPolly -polly-process-unprofitable=false -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-process-unprofitable=false \ ; RUN: -polly-detect -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -polly-allow-nonaffine-loops -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --check-prefix=NALOOPS ; RUN: opt %loadPolly -polly-allow-nonaffine-loops \ ; RUN: -polly-detect -analyze < %s | FileCheck %s --check-prefix=NALOOPS +; RUN: opt %loadPolly -polly-allow-nonaffine-loops -disable-output \ +; RUN: -polly-process-unprofitable=false "-passes=print" < %s \ +; RUN: 2>&1 -aa-pipeline=basic-aa | FileCheck %s --check-prefix=PROFIT \ +; RUN: --allow-empty ; RUN: opt %loadPolly -polly-allow-nonaffine-loops -polly-detect -analyze \ ; RUN: -polly-process-unprofitable=false < %s | \ ; RUN: FileCheck %s --check-prefix=PROFIT Index: test/ScopDetect/invalidate_scalar_evolution.ll =================================================================== --- test/ScopDetect/invalidate_scalar_evolution.ll +++ test/ScopDetect/invalidate_scalar_evolution.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s -check-prefix=PHI ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s -check-prefix=PHI ; void f(long A[], long N) { Index: test/ScopDetect/keep_going_expansion.ll =================================================================== --- test/ScopDetect/keep_going_expansion.ll +++ test/ScopDetect/keep_going_expansion.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-detect-track-failures -polly-detect-keep-going \ +; RUN: -disable-output "-passes=print" -aa-pipeline=basic-aa < %s\ +; RUN: 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-detect-track-failures -polly-detect-keep-going -polly-detect -analyze < %s | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" Index: test/ScopDetect/mod_ref_read_pointer.ll =================================================================== --- test/ScopDetect/mod_ref_read_pointer.ll +++ test/ScopDetect/mod_ref_read_pointer.ll @@ -1,5 +1,10 @@ +; RUN: opt %loadPolly -disable-output -polly-allow-modref-calls \ +; RUN: "-passes=print" -aa-pipeline=basic-aa < %s 2>&1 | \ +; RUN: FileCheck %s -check-prefix=MODREF ; RUN: opt %loadPolly -basicaa -polly-detect -analyze \ ; RUN: -polly-allow-modref-calls < %s | FileCheck %s -check-prefix=MODREF +; RUN: opt %loadPolly -disable-output "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s --allow-empty ; RUN: opt %loadPolly -basicaa -polly-detect -analyze \ ; RUN: < %s | FileCheck %s ; Index: test/ScopDetect/more-than-one-loop.ll =================================================================== --- test/ScopDetect/more-than-one-loop.ll +++ test/ScopDetect/more-than-one-loop.ll @@ -1,7 +1,13 @@ +; RUN: opt %loadPolly -polly-process-unprofitable=false -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-process-unprofitable=false \ ; RUN: \ ; RUN: -polly-detect -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -polly-process-unprofitable=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-process-unprofitable=true \ ; RUN: \ ; RUN: -polly-detect -analyze < %s | FileCheck %s Index: test/ScopDetect/multidim-with-undef-size.ll =================================================================== --- test/ScopDetect/multidim-with-undef-size.ll +++ test/ScopDetect/multidim-with-undef-size.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" Index: test/ScopDetect/multidim.ll =================================================================== --- test/ScopDetect/multidim.ll +++ test/ScopDetect/multidim.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" Index: test/ScopDetect/multidim_indirect_access.ll =================================================================== --- test/ScopDetect/multidim_indirect_access.ll +++ test/ScopDetect/multidim_indirect_access.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s ; ; Check that we will recognize this SCoP. Index: test/ScopDetect/multidim_two_accesses_different_delinearization.ll =================================================================== --- test/ScopDetect/multidim_two_accesses_different_delinearization.ll +++ test/ScopDetect/multidim_two_accesses_different_delinearization.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" Index: test/ScopDetect/nested_loop_single_exit.ll =================================================================== --- test/ScopDetect/nested_loop_single_exit.ll +++ test/ScopDetect/nested_loop_single_exit.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen -analyze < %s ; void f(long A[], long N) { Index: test/ScopDetect/non-affine-conditional.ll =================================================================== --- test/ScopDetect/non-affine-conditional.ll +++ test/ScopDetect/non-affine-conditional.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-allow-nonaffine-branches -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-allow-nonaffine-branches -polly-detect \ ; RUN: -analyze < %s | FileCheck %s ; Index: test/ScopDetect/non-affine-float-compare.ll =================================================================== --- test/ScopDetect/non-affine-float-compare.ll +++ test/ScopDetect/non-affine-float-compare.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-allow-nonaffine-branches -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-detect -polly-allow-nonaffine-branches \ ; RUN: -analyze < %s | FileCheck %s ; Index: test/ScopDetect/non-affine-loop-condition-dependent-access.ll =================================================================== --- test/ScopDetect/non-affine-loop-condition-dependent-access.ll +++ test/ScopDetect/non-affine-loop-condition-dependent-access.ll @@ -1,6 +1,22 @@ +; RUN: opt %loadPolly -polly-allow-nonaffine-branches \ +; RUN: -polly-allow-nonaffine-loops=false -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa < %s 2>&1 | \ +; RUN: FileCheck %s --check-prefix=REJECTNONAFFINELOOPS --allow-empty ; RUN: opt %loadPolly -basicaa -polly-detect -polly-allow-nonaffine-branches -polly-allow-nonaffine-loops=false -analyze < %s | FileCheck %s --check-prefix=REJECTNONAFFINELOOPS +; RUN: opt %loadPolly -polly-allow-nonaffine-branches \ +; RUN: -polly-allow-nonaffine-loops=true -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa < %s 2>&1 | \ +; RUN: FileCheck %s --check-prefix=ALLOWNONAFFINELOOPS ; RUN: opt %loadPolly -basicaa -polly-detect -polly-allow-nonaffine-branches -polly-allow-nonaffine-loops=true -analyze < %s | FileCheck %s --check-prefix=ALLOWNONAFFINELOOPS +; RUN: opt %loadPolly -polly-allow-nonaffine -polly-allow-nonaffine-branches \ +; RUN: -polly-allow-nonaffine-loops=true -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa < %s 2>&1 | \ +; RUN: FileCheck %s --check-prefix=ALLOWNONAFFINELOOPSANDACCESSES ; RUN: opt %loadPolly -basicaa -polly-detect -polly-allow-nonaffine -polly-allow-nonaffine-branches -polly-allow-nonaffine-loops=true -analyze < %s | FileCheck %s --check-prefix=ALLOWNONAFFINELOOPSANDACCESSES +; RUN: opt %loadPolly -polly-process-unprofitable=false -polly-allow-nonaffine \ +; RUN: -polly-allow-nonaffine-branches -polly-allow-nonaffine-loops=true \ +; RUN: -disable-output "-passes=print" -aa-pipeline=basic-aa < %s\ +; RUN: 2>&1 | FileCheck %s --check-prefix=PROFIT --allow-empty ; RUN: opt %loadPolly -basicaa -polly-detect -polly-process-unprofitable=false \ ; RUN: -polly-allow-nonaffine -polly-allow-nonaffine-branches \ ; RUN: -polly-allow-nonaffine-loops=true -analyze < %s \ Index: test/ScopDetect/non-affine-loop-condition-dependent-access_2.ll =================================================================== --- test/ScopDetect/non-affine-loop-condition-dependent-access_2.ll +++ test/ScopDetect/non-affine-loop-condition-dependent-access_2.ll @@ -1,9 +1,21 @@ +; RUN: opt %loadPolly -polly-allow-nonaffine-branches \ +; RUN: -polly-allow-nonaffine-loops=false -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --check-prefix=REJECTNONAFFINELOOPS ; RUN: opt %loadPolly -polly-detect -polly-allow-nonaffine-branches \ ; RUN: -polly-allow-nonaffine-loops=false \ ; RUN: -analyze < %s | FileCheck %s --check-prefix=REJECTNONAFFINELOOPS +; RUN: opt %loadPolly -polly-allow-nonaffine-branches \ +; RUN: -polly-allow-nonaffine-loops=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --check-prefix=ALLOWNONAFFINELOOPS ; RUN: opt %loadPolly -polly-detect -polly-allow-nonaffine-branches \ ; RUN: -polly-allow-nonaffine-loops=true \ ; RUN: -analyze < %s | FileCheck %s --check-prefix=ALLOWNONAFFINELOOPS +; RUN: opt %loadPolly -polly-allow-nonaffine -polly-allow-nonaffine-branches \ +; RUN: -polly-allow-nonaffine-loops=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --check-prefix=ALLOWNONAFFINELOOPSANDACCESSES ; RUN: opt %loadPolly -polly-detect -polly-allow-nonaffine \ ; RUN: -polly-allow-nonaffine-branches -polly-allow-nonaffine-loops=true \ ; RUN: -analyze < %s \ Index: test/ScopDetect/non-affine-loop-condition-dependent-access_3.ll =================================================================== --- test/ScopDetect/non-affine-loop-condition-dependent-access_3.ll +++ test/ScopDetect/non-affine-loop-condition-dependent-access_3.ll @@ -1,9 +1,21 @@ +; RUN: opt %loadPolly -polly-allow-nonaffine-branches \ +; RUN: -polly-allow-nonaffine-loops=false -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --check-prefix=REJECTNONAFFINELOOPS ; RUN: opt %loadPolly -polly-detect -polly-allow-nonaffine-branches \ ; RUN: -polly-allow-nonaffine-loops=false \ ; RUN: -analyze < %s | FileCheck %s --check-prefix=REJECTNONAFFINELOOPS +; RUN: opt %loadPolly -polly-allow-nonaffine-branches \ +; RUN: -polly-allow-nonaffine-loops=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --check-prefix=ALLOWNONAFFINELOOPS ; RUN: opt %loadPolly -polly-detect -polly-allow-nonaffine-branches \ ; RUN: -polly-allow-nonaffine-loops=true \ ; RUN: -analyze < %s | FileCheck %s --check-prefix=ALLOWNONAFFINELOOPS +; RUN: opt %loadPolly -polly-allow-nonaffine -polly-allow-nonaffine-branches \ +; RUN: -polly-allow-nonaffine-loops=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --check-prefix=ALLOWNONAFFINELOOPSANDACCESSES ; RUN: opt %loadPolly -polly-detect -polly-allow-nonaffine \ ; RUN: -polly-allow-nonaffine-branches -polly-allow-nonaffine-loops=true \ ; RUN: -analyze < %s | FileCheck %s \ Index: test/ScopDetect/non-affine-loop.ll =================================================================== --- test/ScopDetect/non-affine-loop.ll +++ test/ScopDetect/non-affine-loop.ll @@ -1,17 +1,39 @@ +; RUN: opt %loadPolly -polly-allow-nonaffine-branches \ +; RUN: -polly-allow-nonaffine-loops=false -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --check-prefix=REJECTNONAFFINELOOPS --allow-empty ; RUN: opt %loadPolly -polly-detect -polly-allow-nonaffine-branches \ ; RUN: -polly-allow-nonaffine-loops=false \ ; RUN: -analyze < %s | FileCheck %s --check-prefix=REJECTNONAFFINELOOPS +; RUN: opt %loadPolly -polly-allow-nonaffine-branches \ +; RUN: -polly-allow-nonaffine-loops=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --check-prefix=ALLOWNONAFFINELOOPS ; RUN: opt %loadPolly -polly-detect -polly-allow-nonaffine-branches \ ; RUN: -polly-allow-nonaffine-loops=true \ ; RUN: -analyze < %s | FileCheck %s --check-prefix=ALLOWNONAFFINELOOPS +; RUN: opt %loadPolly -polly-allow-nonaffine-branches \ +; RUN: -polly-allow-nonaffine-loops=false -polly-allow-nonaffine \ +; RUN: -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s \ +; RUN: --check-prefix=ALLOWNONAFFINEREGIONSANDACCESSES --allow-empty ; RUN: opt %loadPolly -polly-detect -polly-allow-nonaffine-branches \ ; RUN: -polly-allow-nonaffine-loops=false -polly-allow-nonaffine \ ; RUN: -analyze < %s | FileCheck %s \ ; RUN: --check-prefix=ALLOWNONAFFINEREGIONSANDACCESSES +; RUN: opt %loadPolly -polly-allow-nonaffine-branches \ +; RUN: -polly-allow-nonaffine-loops=true -polly-allow-nonaffine -disable-output\ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --check-prefix=ALLOWNONAFFINELOOPSANDACCESSES ; RUN: opt %loadPolly -polly-detect -polly-allow-nonaffine-branches \ ; RUN: -polly-allow-nonaffine-loops=true -polly-allow-nonaffine \ ; RUN: -analyze < %s | FileCheck %s \ ; RUN: --check-prefix=ALLOWNONAFFINELOOPSANDACCESSES +; RUN: opt %loadPolly -polly-process-unprofitable=false \ +; RUN: -polly-allow-nonaffine-branches -polly-allow-nonaffine-loops=true \ +; RUN: -polly-allow-nonaffine -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s --check-prefix=PROFIT \ +; RUN: --allow-empty ; RUN: opt %loadPolly -polly-process-unprofitable=false \ ; RUN: -polly-detect -polly-allow-nonaffine-branches \ ; RUN: -polly-allow-nonaffine-loops=true -polly-allow-nonaffine \ Index: test/ScopDetect/non-beneficial-loops-small-trip-count.ll =================================================================== --- test/ScopDetect/non-beneficial-loops-small-trip-count.ll +++ test/ScopDetect/non-beneficial-loops-small-trip-count.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-process-unprofitable=false -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-process-unprofitable=false -polly-detect \ ; RUN: -analyze < %s | FileCheck %s ; Index: test/ScopDetect/non-constant-add-rec-start-expr.ll =================================================================== --- test/ScopDetect/non-constant-add-rec-start-expr.ll +++ test/ScopDetect/non-constant-add-rec-start-expr.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly - -disable-output "-passes=print" < %s 2>&1\ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -\ ; RUN: -analyze < %s | FileCheck %s Index: test/ScopDetect/non-simple-memory-accesses.ll =================================================================== --- test/ScopDetect/non-simple-memory-accesses.ll +++ test/ScopDetect/non-simple-memory-accesses.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-detect \ ; RUN: -analyze < %s | FileCheck %s ; Index: test/ScopDetect/non_affine_loop_condition.ll =================================================================== --- test/ScopDetect/non_affine_loop_condition.ll +++ test/ScopDetect/non_affine_loop_condition.ll @@ -1,6 +1,13 @@ +; RUN: opt %loadPolly -polly-allow-nonaffine-loops -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly \ ; RUN: -polly-detect -polly-allow-nonaffine-loops -analyze \ ; RUN: < %s | FileCheck %s +; RUN: opt %loadPolly -polly-process-unprofitable=false \ +; RUN: -polly-allow-nonaffine-loops -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --check-prefix=PROFIT --allow-empty ; RUN: opt %loadPolly -polly-process-unprofitable=false \ ; RUN: -polly-detect -polly-allow-nonaffine-loops -analyze \ ; RUN: < %s | FileCheck %s --check-prefix=PROFIT Index: test/ScopDetect/only-one-affine-loop.ll =================================================================== --- test/ScopDetect/only-one-affine-loop.ll +++ test/ScopDetect/only-one-affine-loop.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-process-unprofitable=false -disable-output \ +; RUN: -polly-allow-nonaffine-loops "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -polly-process-unprofitable=false -analyze \ ; RUN: -polly-allow-nonaffine-loops < %s | FileCheck %s ; Index: test/ScopDetect/only_func_flag.ll =================================================================== --- test/ScopDetect/only_func_flag.ll +++ test/ScopDetect/only_func_flag.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output "-polly-only-func=f,g" \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze -polly-only-func=f,g < %s | FileCheck %s ; ; Check that the flag `-polly-only-func` limits analysis to `f` and `g`. Index: test/ScopDetect/parametric-multiply-in-scev-2.ll =================================================================== --- test/ScopDetect/parametric-multiply-in-scev-2.ll +++ test/ScopDetect/parametric-multiply-in-scev-2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s Index: test/ScopDetect/parametric-multiply-in-scev.ll =================================================================== --- test/ScopDetect/parametric-multiply-in-scev.ll +++ test/ScopDetect/parametric-multiply-in-scev.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s ; foo(float *A, long n, long k) { Index: test/ScopDetect/phi_with_multi_exiting_edges.ll =================================================================== --- test/ScopDetect/phi_with_multi_exiting_edges.ll +++ test/ScopDetect/phi_with_multi_exiting_edges.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output -S "-passes=print" < %s \ +; RUN: 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -analyze -S < %s | FileCheck %s ; ; Region with an exit node that has a PHI node multiple incoming edges from Index: test/ScopDetect/profitability-large-basic-blocks.ll =================================================================== --- test/ScopDetect/profitability-large-basic-blocks.ll +++ test/ScopDetect/profitability-large-basic-blocks.ll @@ -1,10 +1,20 @@ +; RUN: opt %loadPolly -polly-process-unprofitable=false \ +; RUN: -polly-detect-profitability-min-per-loop-insts=40 -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s -check-prefix=PROFITABLE ; RUN: opt %loadPolly -polly-process-unprofitable=false \ ; RUN: -polly-detect-profitability-min-per-loop-insts=40 \ ; RUN: -polly-detect -analyze < %s | FileCheck %s -check-prefix=PROFITABLE +; RUN: opt %loadPolly -polly-process-unprofitable=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s -check-prefix=PROFITABLE ; RUN: opt %loadPolly -polly-process-unprofitable=true \ ; RUN: -polly-detect -analyze < %s | FileCheck %s -check-prefix=PROFITABLE +; RUN: opt %loadPolly -polly-process-unprofitable=false -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s -check-prefix=UNPROFITABLE --allow-empty ; RUN: opt %loadPolly -polly-process-unprofitable=false \ ; RUN: \ ; RUN: -polly-detect -analyze < %s | FileCheck %s -check-prefix=UNPROFITABLE Index: test/ScopDetect/remove_all_children.ll =================================================================== --- test/ScopDetect/remove_all_children.ll +++ test/ScopDetect/remove_all_children.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" Index: test/ScopDetect/report-scop-location.ll =================================================================== --- test/ScopDetect/report-scop-location.ll +++ test/ScopDetect/report-scop-location.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-report -disable-output < %s 2>&1 \ +; RUN: "-passes=require" -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -polly-report -disable-output < %s 2>&1 | FileCheck %s target datalayout = "e-i64:64-f80:128-s:64-n8:16:32:64-S128" Index: test/ScopDetect/restrict-undef-size-scopdetect.ll =================================================================== --- test/ScopDetect/restrict-undef-size-scopdetect.ll +++ test/ScopDetect/restrict-undef-size-scopdetect.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s ; CHECK-NOT: Valid Region for Scop: Index: test/ScopDetect/run_time_alias_check.ll =================================================================== --- test/ScopDetect/run_time_alias_check.ll +++ test/ScopDetect/run_time_alias_check.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128" Index: test/ScopDetect/scev_remove_max.ll =================================================================== --- test/ScopDetect/scev_remove_max.ll +++ test/ScopDetect/scev_remove_max.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly "-passes=require" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-detect < %s ; This test case helps to determine wether SCEVRemoveMax::remove produces Index: test/ScopDetect/sequential_loops.ll =================================================================== --- test/ScopDetect/sequential_loops.ll +++ test/ScopDetect/sequential_loops.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128" @@ -13,7 +15,7 @@ ; } define void @f1(i64* %A, i64 %N) nounwind { -; CHECK-LABEL: 'Polly - Detect static control parts (SCoPs)' for function 'f1' +; CHECK-LABEL: f1 entry: fence seq_cst br label %for.i.1 @@ -60,7 +62,7 @@ ; } define void @f2(i64* %A, i64 %N) nounwind { -; CHECK-LABEL: 'Polly - Detect static control parts (SCoPs)' for function 'f2' +; CHECK-LABEL: f2 entry: fence seq_cst br label %for.i.1 Index: test/ScopDetect/simple_loop.ll =================================================================== --- test/ScopDetect/simple_loop.ll +++ test/ScopDetect/simple_loop.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s ; void f(long A[], long N) { Index: test/ScopDetect/simple_loop_non_single_entry.ll =================================================================== --- test/ScopDetect/simple_loop_non_single_entry.ll +++ test/ScopDetect/simple_loop_non_single_entry.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s ; void f(long A[], long N) { Index: test/ScopDetect/simple_loop_non_single_exit.ll =================================================================== --- test/ScopDetect/simple_loop_non_single_exit.ll +++ test/ScopDetect/simple_loop_non_single_exit.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s ; void f(long A[], long N) { Index: test/ScopDetect/simple_loop_non_single_exit_2.ll =================================================================== --- test/ScopDetect/simple_loop_non_single_exit_2.ll +++ test/ScopDetect/simple_loop_non_single_exit_2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s ; void f(long A[], long N) { Index: test/ScopDetect/simple_loop_two_phi_nodes.ll =================================================================== --- test/ScopDetect/simple_loop_two_phi_nodes.ll +++ test/ScopDetect/simple_loop_two_phi_nodes.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s ; void f(long A[], long N) { Index: test/ScopDetect/simple_loop_with_param.ll =================================================================== --- test/ScopDetect/simple_loop_with_param.ll +++ test/ScopDetect/simple_loop_with_param.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s -check-prefix=PHI ; RUN: opt %loadPolly -basicaa -polly-detect -analyze < %s | FileCheck %s -check-prefix=PHI ; void f(long A[], long N, long *init_ptr) { Index: test/ScopDetect/simple_loop_with_param_2.ll =================================================================== --- test/ScopDetect/simple_loop_with_param_2.ll +++ test/ScopDetect/simple_loop_with_param_2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-detect -analyze < %s | FileCheck %s ; void f(long A[], int N, int *init_ptr) { Index: test/ScopDetect/simple_non_single_entry.ll =================================================================== --- test/ScopDetect/simple_non_single_entry.ll +++ test/ScopDetect/simple_non_single_entry.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s ; void f(long A[], long N) { Index: test/ScopDetect/skip_function_attribute.ll =================================================================== --- test/ScopDetect/skip_function_attribute.ll +++ test/ScopDetect/skip_function_attribute.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s ; ; Verify polly skips this function Index: test/ScopDetect/srem_with_parametric_divisor.ll =================================================================== --- test/ScopDetect/srem_with_parametric_divisor.ll +++ test/ScopDetect/srem_with_parametric_divisor.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s ; ; CHECK-NOT: Valid Region for Scop: Index: test/ScopDetect/statistics.ll =================================================================== --- test/ScopDetect/statistics.ll +++ test/ScopDetect/statistics.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -stats -disable-output "-passes=require" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -polly-detect -stats -disable-output < %s 2>&1 | FileCheck %s ; REQUIRES: asserts Index: test/ScopDetect/switch-in-loop-patch.ll =================================================================== --- test/ScopDetect/switch-in-loop-patch.ll +++ test/ScopDetect/switch-in-loop-patch.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s ; CHECK-NOT: Valid Index: test/ScopInfo/20110312-Fail-without-basicaa.ll =================================================================== --- test/ScopInfo/20110312-Fail-without-basicaa.ll +++ test/ScopInfo/20110312-Fail-without-basicaa.ll @@ -1,4 +1,6 @@ ; This should be run without alias analysis enabled. +; RUN: opt %loadPolly "-passes=require" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa ;RUN: opt %loadPolly -polly-scops < %s target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32" Index: test/ScopInfo/20111108-Parameter-not-detected.ll =================================================================== --- test/ScopInfo/20111108-Parameter-not-detected.ll +++ test/ScopInfo/20111108-Parameter-not-detected.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" Index: test/ScopInfo/2012-03-16-Crash-because-of-unsigned-in-scev.ll =================================================================== --- test/ScopInfo/2012-03-16-Crash-because-of-unsigned-in-scev.ll +++ test/ScopInfo/2012-03-16-Crash-because-of-unsigned-in-scev.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s target datalayout = "e-p:32:32:32-i64:64:64-i32:32:32-i16:16:16-i1:32:32-f64:64:64-f32:32:32-a0:0-n32" Index: test/ScopInfo/2015-10-04-Crash-in-domain-generation.ll =================================================================== --- test/ScopInfo/2015-10-04-Crash-in-domain-generation.ll +++ test/ScopInfo/2015-10-04-Crash-in-domain-generation.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-allow-nonaffine-loops -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-allow-nonaffine-loops -polly-scops -analyze < %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" Index: test/ScopInfo/Alias-0.ll =================================================================== --- test/ScopInfo/Alias-0.ll +++ test/ScopInfo/Alias-0.ll @@ -1,4 +1,10 @@ +; RUN: opt %loadPolly -disable-output < %s -stats 2>&1 \ +; RUN: "-passes=print" -aa-pipeline=basic-aa | FileCheck \ +; RUN: %s --check-prefix=RTA ; RUN: opt %loadPolly -polly-scops -analyze < %s -stats 2>&1 | FileCheck %s --check-prefix=RTA +; RUN: opt %loadPolly -polly-use-runtime-alias-checks=false -disable-output < \ +; RUN: %s -stats 2>&1 "-passes=print" \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=NORTA ; RUN: opt %loadPolly -polly-scops -polly-use-runtime-alias-checks=false -analyze < %s -stats 2>&1 | FileCheck %s --check-prefix=NORTA ; REQUIRES: asserts Index: test/ScopInfo/Alias-1.ll =================================================================== --- test/ScopInfo/Alias-1.ll +++ test/ScopInfo/Alias-1.ll @@ -1,4 +1,10 @@ +; RUN: opt %loadPolly -disable-output < %s -stats 2>&1 \ +; RUN: "-passes=print" -aa-pipeline=basic-aa | FileCheck \ +; RUN: %s --check-prefix=RTA ; RUN: opt %loadPolly -polly-scops -analyze < %s -stats 2>&1 | FileCheck %s --check-prefix=RTA +; RUN: opt %loadPolly -polly-use-runtime-alias-checks=false -disable-output < \ +; RUN: %s -stats 2>&1 "-passes=print" \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=NORTA ; RUN: opt %loadPolly -polly-scops -polly-use-runtime-alias-checks=false -analyze < %s -stats 2>&1 | FileCheck %s --check-prefix=NORTA ; REQUIRES: asserts Index: test/ScopInfo/Alias-2.ll =================================================================== --- test/ScopInfo/Alias-2.ll +++ test/ScopInfo/Alias-2.ll @@ -1,4 +1,10 @@ +; RUN: opt %loadPolly -disable-output < %s -stats 2>&1 \ +; RUN: "-passes=print" -aa-pipeline=basic-aa | FileCheck \ +; RUN: %s --check-prefix=RTA ; RUN: opt %loadPolly -polly-scops -analyze < %s -stats 2>&1 | FileCheck %s --check-prefix=RTA +; RUN: opt %loadPolly -polly-use-runtime-alias-checks=false -disable-output < \ +; RUN: %s -stats 2>&1 "-passes=print" \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=NORTA ; RUN: opt %loadPolly -polly-scops -polly-use-runtime-alias-checks=false -analyze < %s -stats 2>&1 | FileCheck %s --check-prefix=NORTA ; REQUIRES: asserts Index: test/ScopInfo/Alias-3.ll =================================================================== --- test/ScopInfo/Alias-3.ll +++ test/ScopInfo/Alias-3.ll @@ -1,4 +1,10 @@ +; RUN: opt %loadPolly -disable-output < %s -stats 2>&1 \ +; RUN: "-passes=print" -aa-pipeline=basic-aa | FileCheck \ +; RUN: %s --check-prefix=RTA ; RUN: opt %loadPolly -polly-scops -analyze < %s -stats 2>&1 | FileCheck %s --check-prefix=RTA +; RUN: opt %loadPolly -polly-use-runtime-alias-checks=false -disable-output < \ +; RUN: %s -stats 2>&1 "-passes=print" \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=NORTA ; RUN: opt %loadPolly -polly-scops -polly-use-runtime-alias-checks=false -analyze < %s -stats 2>&1 | FileCheck %s --check-prefix=NORTA ; REQUIRES: asserts Index: test/ScopInfo/Alias-4.ll =================================================================== --- test/ScopInfo/Alias-4.ll +++ test/ScopInfo/Alias-4.ll @@ -1,4 +1,9 @@ +; RUN: opt %loadPolly -disable-basicaa -disable-output < %s -stats 2>&1 \ +; RUN: "-passes=print" | FileCheck %s --check-prefix=RTA ; RUN: opt %loadPolly -disable-basicaa -polly-scops -analyze < %s -stats 2>&1 | FileCheck %s --check-prefix=RTA +; RUN: opt %loadPolly -disable-basicaa -polly-use-runtime-alias-checks=false \ +; RUN: -disable-output < %s -stats 2>&1 "-passes=print" |\ +; RUN: FileCheck %s --check-prefix=NORTA ; RUN: opt %loadPolly -disable-basicaa -polly-scops -polly-use-runtime-alias-checks=false -analyze < %s -stats 2>&1 | FileCheck %s --check-prefix=NORTA ; REQUIRES: asserts Index: test/ScopInfo/BoundChecks/single-loop.ll =================================================================== --- test/ScopInfo/BoundChecks/single-loop.ll +++ test/ScopInfo/BoundChecks/single-loop.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=AST ; RUN: opt %loadPolly -polly-ast -analyze < %s | FileCheck %s --check-prefix=AST ; ; This only works after the post-dominator tree has been fixed. Index: test/ScopInfo/BoundChecks/two-loops.ll =================================================================== --- test/ScopInfo/BoundChecks/two-loops.ll +++ test/ScopInfo/BoundChecks/two-loops.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=AST ; RUN: opt %loadPolly -polly-ast -analyze < %s | FileCheck %s --check-prefix=AST ; ; This only works after the post-dominator tree has fixed. Index: test/ScopInfo/NonAffine/div_backedge.ll =================================================================== --- test/ScopInfo/NonAffine/div_backedge.ll +++ test/ScopInfo/NonAffine/div_backedge.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; void foo(float *A) { Index: test/ScopInfo/NonAffine/div_domain.ll =================================================================== --- test/ScopInfo/NonAffine/div_domain.ll +++ test/ScopInfo/NonAffine/div_domain.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; void foo(float *A) { Index: test/ScopInfo/NonAffine/invariant_loads_dependent_in_non_affine_region.ll =================================================================== --- test/ScopInfo/NonAffine/invariant_loads_dependent_in_non_affine_region.ll +++ test/ScopInfo/NonAffine/invariant_loads_dependent_in_non_affine_region.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s ; Index: test/ScopInfo/NonAffine/modulo_backedge.ll =================================================================== --- test/ScopInfo/NonAffine/modulo_backedge.ll +++ test/ScopInfo/NonAffine/modulo_backedge.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: Domain := Index: test/ScopInfo/NonAffine/modulo_domain.ll =================================================================== --- test/ScopInfo/NonAffine/modulo_domain.ll +++ test/ScopInfo/NonAffine/modulo_domain.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; TODO: The new domain generation cannot handle modulo domain constraints, Index: test/ScopInfo/NonAffine/non-affine-loop-condition-dependent-access_1.ll =================================================================== --- test/ScopInfo/NonAffine/non-affine-loop-condition-dependent-access_1.ll +++ test/ScopInfo/NonAffine/non-affine-loop-condition-dependent-access_1.ll @@ -1,7 +1,16 @@ +; RUN: opt %loadPolly -polly-allow-nonaffine -polly-allow-nonaffine-branches \ +; RUN: -polly-allow-nonaffine-loops=true -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa < %s 2>&1 | \ +; RUN: FileCheck %s -check-prefix=SCALAR ; RUN: opt %loadPolly -basicaa -polly-scops \ ; RUN: -polly-allow-nonaffine -polly-allow-nonaffine-branches \ ; RUN: -polly-allow-nonaffine-loops=true -analyze < %s | FileCheck %s \ ; RUN: -check-prefix=SCALAR +; RUN: opt %loadPolly -polly-allow-nonaffine -polly-process-unprofitable=false \ +; RUN: -polly-allow-nonaffine-branches -polly-allow-nonaffine-loops=true \ +; RUN: -disable-output "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s -check-prefix=PROFIT \ +; RUN: --allow-empty ; RUN: opt %loadPolly -basicaa -polly-scops -polly-allow-nonaffine \ ; RUN: -polly-process-unprofitable=false \ ; RUN: -polly-allow-nonaffine-branches -polly-allow-nonaffine-loops=true \ Index: test/ScopInfo/NonAffine/non-affine-loop-condition-dependent-access_2.ll =================================================================== --- test/ScopInfo/NonAffine/non-affine-loop-condition-dependent-access_2.ll +++ test/ScopInfo/NonAffine/non-affine-loop-condition-dependent-access_2.ll @@ -1,9 +1,21 @@ +; RUN: opt %loadPolly -polly-allow-nonaffine-branches \ +; RUN: -polly-allow-nonaffine-loops=false -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa < %s 2>&1 | \ +; RUN: FileCheck %s --check-prefix=INNERMOST ; RUN: opt %loadPolly -basicaa -polly-scops -polly-allow-nonaffine-branches \ ; RUN: -polly-allow-nonaffine-loops=false \ ; RUN: -analyze < %s | FileCheck %s --check-prefix=INNERMOST +; RUN: opt %loadPolly -polly-allow-nonaffine-branches \ +; RUN: -polly-allow-nonaffine-loops=true -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa < %s 2>&1 | \ +; RUN: FileCheck %s --check-prefix=INNERMOST ; RUN: opt %loadPolly -basicaa -polly-scops -polly-allow-nonaffine-branches \ ; RUN: -polly-allow-nonaffine-loops=true \ ; RUN: -analyze < %s | FileCheck %s --check-prefix=INNERMOST +; RUN: opt %loadPolly -polly-allow-nonaffine -polly-allow-nonaffine-branches \ +; RUN: -polly-allow-nonaffine-loops=true -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa < %s 2>&1 | \ +; RUN: FileCheck %s --check-prefix=ALL ; RUN: opt %loadPolly -basicaa -polly-scops -polly-allow-nonaffine \ ; RUN: -polly-allow-nonaffine-branches -polly-allow-nonaffine-loops=true \ ; RUN: -analyze < %s | FileCheck %s \ Index: test/ScopInfo/NonAffine/non-affine-loop-condition-dependent-access_3.ll =================================================================== --- test/ScopInfo/NonAffine/non-affine-loop-condition-dependent-access_3.ll +++ test/ScopInfo/NonAffine/non-affine-loop-condition-dependent-access_3.ll @@ -1,9 +1,21 @@ +; RUN: opt %loadPolly -polly-allow-nonaffine-branches \ +; RUN: -polly-allow-nonaffine-loops=false -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa < %s 2>&1 | \ +; RUN: FileCheck %s --check-prefix=INNERMOST ; RUN: opt %loadPolly -basicaa -polly-scops -polly-allow-nonaffine-branches \ ; RUN: -polly-allow-nonaffine-loops=false \ ; RUN: -analyze < %s | FileCheck %s --check-prefix=INNERMOST +; RUN: opt %loadPolly -polly-allow-nonaffine-branches \ +; RUN: -polly-allow-nonaffine-loops=true -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa < %s 2>&1 | \ +; RUN: FileCheck %s --check-prefix=INNERMOST ; RUN: opt %loadPolly -basicaa -polly-scops -polly-allow-nonaffine-branches \ ; RUN: -polly-allow-nonaffine-loops=true \ ; RUN: -analyze < %s | FileCheck %s --check-prefix=INNERMOST +; RUN: opt %loadPolly -polly-allow-nonaffine -polly-allow-nonaffine-branches \ +; RUN: -polly-allow-nonaffine-loops=true -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa < %s 2>&1 | \ +; RUN: FileCheck %s --check-prefix=ALL ; RUN: opt %loadPolly -basicaa -polly-scops -polly-allow-nonaffine \ ; RUN: -polly-allow-nonaffine-branches -polly-allow-nonaffine-loops=true \ ; RUN: -analyze < %s | FileCheck %s --check-prefix=ALL Index: test/ScopInfo/NonAffine/non_affine_access_with_range_2.ll =================================================================== --- test/ScopInfo/NonAffine/non_affine_access_with_range_2.ll +++ test/ScopInfo/NonAffine/non_affine_access_with_range_2.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-allow-nonaffine -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-allow-nonaffine -analyze < %s | FileCheck %s ; ; void f(int *A) { Index: test/ScopInfo/NonAffine/non_affine_but_sdiv.ll =================================================================== --- test/ScopInfo/NonAffine/non_affine_but_sdiv.ll +++ test/ScopInfo/NonAffine/non_affine_but_sdiv.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: Statements { Index: test/ScopInfo/NonAffine/non_affine_but_srem.ll =================================================================== --- test/ScopInfo/NonAffine/non_affine_but_srem.ll +++ test/ScopInfo/NonAffine/non_affine_but_srem.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops \ ; RUN: -analyze < %s | FileCheck %s ; Index: test/ScopInfo/NonAffine/non_affine_conditional_nested.ll =================================================================== --- test/ScopInfo/NonAffine/non_affine_conditional_nested.ll +++ test/ScopInfo/NonAffine/non_affine_conditional_nested.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-allow-nonaffine-branches -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-allow-nonaffine-branches \ ; RUN: -analyze < %s | FileCheck %s ; Index: test/ScopInfo/NonAffine/non_affine_conditional_surrounding_affine_loop.ll =================================================================== --- test/ScopInfo/NonAffine/non_affine_conditional_surrounding_affine_loop.ll +++ test/ScopInfo/NonAffine/non_affine_conditional_surrounding_affine_loop.ll @@ -1,7 +1,16 @@ +; RUN: opt %loadPolly -polly-allow-nonaffine-branches \ +; RUN: -polly-invariant-load-hoisting=true -polly-allow-nonaffine-loops=true \ +; RUN: -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=INNERMOST ; RUN: opt %loadPolly -polly-scops -polly-allow-nonaffine-branches \ ; RUN: -polly-invariant-load-hoisting=true \ ; RUN: -polly-allow-nonaffine-loops=true \ ; RUN: -analyze < %s | FileCheck %s --check-prefix=INNERMOST +; RUN: opt %loadPolly -polly-allow-nonaffine \ +; RUN: -polly-invariant-load-hoisting=true -polly-allow-nonaffine-branches \ +; RUN: -polly-allow-nonaffine-loops=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --check-prefix=ALL ; RUN: opt %loadPolly -polly-scops -polly-allow-nonaffine \ ; RUN: -polly-invariant-load-hoisting=true \ ; RUN: -polly-allow-nonaffine-branches -polly-allow-nonaffine-loops=true \ Index: test/ScopInfo/NonAffine/non_affine_conditional_surrounding_non_affine_loop.ll =================================================================== --- test/ScopInfo/NonAffine/non_affine_conditional_surrounding_non_affine_loop.ll +++ test/ScopInfo/NonAffine/non_affine_conditional_surrounding_non_affine_loop.ll @@ -1,11 +1,25 @@ +; RUN: opt %loadPolly -polly-allow-nonaffine-branches \ +; RUN: -polly-invariant-load-hoisting=true -polly-allow-nonaffine-loops=true \ +; RUN: -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=INNERMOST ; RUN: opt %loadPolly -polly-scops -polly-allow-nonaffine-branches \ ; RUN: -polly-invariant-load-hoisting=true \ ; RUN: -polly-allow-nonaffine-loops=true \ ; RUN: -analyze < %s | FileCheck %s --check-prefix=INNERMOST +; RUN: opt %loadPolly -polly-allow-nonaffine \ +; RUN: -polly-invariant-load-hoisting=true -polly-allow-nonaffine-branches \ +; RUN: -polly-allow-nonaffine-loops=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --check-prefix=ALL ; RUN: opt %loadPolly -polly-scops -polly-allow-nonaffine \ ; RUN: -polly-invariant-load-hoisting=true \ ; RUN: -polly-allow-nonaffine-branches -polly-allow-nonaffine-loops=true \ ; RUN: -analyze < %s | FileCheck %s --check-prefix=ALL +; RUN: opt %loadPolly -polly-allow-nonaffine \ +; RUN: -polly-invariant-load-hoisting=true -polly-process-unprofitable=false \ +; RUN: -polly-allow-nonaffine-branches -polly-allow-nonaffine-loops=true \ +; RUN: -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=PROFIT --allow-empty ; RUN: opt %loadPolly -polly-scops -polly-allow-nonaffine \ ; RUN: -polly-invariant-load-hoisting=true \ ; RUN: -polly-process-unprofitable=false \ Index: test/ScopInfo/NonAffine/non_affine_float_compare.ll =================================================================== --- test/ScopInfo/NonAffine/non_affine_float_compare.ll +++ test/ScopInfo/NonAffine/non_affine_float_compare.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-allow-nonaffine-branches -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-allow-nonaffine-branches \ ; RUN: -analyze < %s | FileCheck %s ; Index: test/ScopInfo/NonAffine/non_affine_loop_condition.ll =================================================================== --- test/ScopInfo/NonAffine/non_affine_loop_condition.ll +++ test/ScopInfo/NonAffine/non_affine_loop_condition.ll @@ -1,12 +1,25 @@ +; RUN: opt %loadPolly -polly-allow-nonaffine-branches \ +; RUN: -polly-allow-nonaffine-loops -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops \ ; RUN: -polly-allow-nonaffine-branches -polly-allow-nonaffine-loops \ ; RUN: -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -polly-allow-nonaffine-branches \ +; RUN: -polly-process-unprofitable=false -polly-allow-nonaffine-loops \ +; RUN: -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=PROFIT --allow-empty ; RUN: opt %loadPolly -polly-scops -polly-allow-nonaffine-branches \ ; RUN: -polly-process-unprofitable=false \ ; RUN: -polly-allow-nonaffine-loops -analyze < %s | FileCheck %s \ ; RUN: --check-prefix=PROFIT +; RUN: opt %loadPolly -polly-detect-reductions -polly-allow-nonaffine-branches \ +; RUN: -polly-allow-nonaffine-loops -disable-output < %s \ +; RUN: -polly-detect-reductions=false "-passes=print" \ +; RUN: 2>&1 -aa-pipeline=basic-aa | FileCheck %s -check-prefix=NO-REDUCTION \ +; RUN: --allow-empty ; RUN: opt %loadPolly -polly-scops -polly-detect-reductions \ ; RUN: -polly-allow-nonaffine-branches \ ; RUN: \ Index: test/ScopInfo/NonAffine/non_affine_loop_used_later.ll =================================================================== --- test/ScopInfo/NonAffine/non_affine_loop_used_later.ll +++ test/ScopInfo/NonAffine/non_affine_loop_used_later.ll @@ -1,6 +1,15 @@ +; RUN: opt %loadPolly -polly-allow-nonaffine -polly-allow-nonaffine-branches \ +; RUN: -polly-allow-nonaffine-loops -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops \ ; RUN: -polly-allow-nonaffine -polly-allow-nonaffine-branches \ ; RUN: -polly-allow-nonaffine-loops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -polly-allow-nonaffine \ +; RUN: -polly-unprofitable-scalar-accs=true -polly-process-unprofitable=false \ +; RUN: -polly-allow-nonaffine-branches -polly-allow-nonaffine-loops \ +; RUN: -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=PROFIT --allow-empty ; RUN: opt %loadPolly -polly-scops -polly-allow-nonaffine \ ; RUN: -polly-unprofitable-scalar-accs=true \ ; RUN: -polly-process-unprofitable=false \ Index: test/ScopInfo/NonAffine/non_affine_parametric_loop.ll =================================================================== --- test/ScopInfo/NonAffine/non_affine_parametric_loop.ll +++ test/ScopInfo/NonAffine/non_affine_parametric_loop.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-allow-nonaffine \ +; RUN: "-passes=print" -aa-pipeline=basic-aa < %s 2>&1 | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-scops -analyze -polly-allow-nonaffine < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" Index: test/ScopInfo/NonAffine/non_affine_region_guaranteed_non-entry.ll =================================================================== --- test/ScopInfo/NonAffine/non_affine_region_guaranteed_non-entry.ll +++ test/ScopInfo/NonAffine/non_affine_region_guaranteed_non-entry.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-allow-nonaffine-loops \ +; RUN: "-passes=function(print,print)" < %s\ +; RUN: 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -polly-scops -analyze \ ; RUN: -polly-allow-nonaffine-loops < %s | FileCheck %s Index: test/ScopInfo/NonAffine/whole-scop-non-affine-subregion-in-loop.ll =================================================================== --- test/ScopInfo/NonAffine/whole-scop-non-affine-subregion-in-loop.ll +++ test/ScopInfo/NonAffine/whole-scop-non-affine-subregion-in-loop.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-scops -analyze < %s ; ; Regression test that triggered a memory leak at some point (24947). Index: test/ScopInfo/aliasing_conditional_alias_groups_1.ll =================================================================== --- test/ScopInfo/aliasing_conditional_alias_groups_1.ll +++ test/ScopInfo/aliasing_conditional_alias_groups_1.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; Check that there is no alias group because we either access A or B never both. Index: test/ScopInfo/aliasing_conditional_alias_groups_2.ll =================================================================== --- test/ScopInfo/aliasing_conditional_alias_groups_2.ll +++ test/ScopInfo/aliasing_conditional_alias_groups_2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; Check that we create two alias groups since the mininmal/maximal accesses Index: test/ScopInfo/aliasing_dead_access.ll =================================================================== --- test/ScopInfo/aliasing_dead_access.ll +++ test/ScopInfo/aliasing_dead_access.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -analyze -polly-scops < %s | FileCheck %s ; ; Check that we do not create a SCoP if there is no statement executed. Index: test/ScopInfo/aliasing_many_arrays_to_compare.ll =================================================================== --- test/ScopInfo/aliasing_many_arrays_to_compare.ll +++ test/ScopInfo/aliasing_many_arrays_to_compare.ll @@ -1,5 +1,10 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s --check-prefix=FOUND ; RUN: opt %loadPolly -polly-scops -analyze \ ; RUN: < %s | FileCheck %s --check-prefix=FOUND +; RUN: opt %loadPolly -disable-output -polly-rtc-max-arrays-per-group=3 \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --check-prefix=IGNORED --allow-empty ; RUN: opt %loadPolly -polly-scops -analyze \ ; RUN: -polly-rtc-max-arrays-per-group=3 < %s | FileCheck %s \ ; RUN: --check-prefix=IGNORED Index: test/ScopInfo/aliasing_many_parameters_not_all_involved.ll =================================================================== --- test/ScopInfo/aliasing_many_parameters_not_all_involved.ll +++ test/ScopInfo/aliasing_many_parameters_not_all_involved.ll @@ -1,4 +1,10 @@ +; RUN: opt %loadPolly -polly-rtc-max-parameters=8 -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --check-prefix=MAX8 ; RUN: opt %loadPolly -polly-scops -polly-rtc-max-parameters=8 -analyze < %s | FileCheck %s --check-prefix=MAX8 +; RUN: opt %loadPolly -polly-rtc-max-parameters=7 -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --check-prefix=MAX7 --allow-empty ; RUN: opt %loadPolly -polly-scops -polly-rtc-max-parameters=7 -analyze < %s | FileCheck %s --check-prefix=MAX7 ; ; Check that we allow this SCoP even though it has 10 parameters involved in posisbly aliasing accesses. @@ -7,7 +13,7 @@ ; MAX8-LABEL: Function: jd ; MAX8-NEXT: Region: %for.cond---%for.end -; MAX7: Invalid Scop! +; MAX7-NOT: Function: ; ; void jd(int *A, int *B, int *C, long p1, long p2, long p3, long p4, long p5, ; long p6, long p7, long p8, long p9, long p10) { Index: test/ScopInfo/aliasing_many_read_only_acesses.ll =================================================================== --- test/ScopInfo/aliasing_many_read_only_acesses.ll +++ test/ScopInfo/aliasing_many_read_only_acesses.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: Assumed Context: Index: test/ScopInfo/aliasing_multiple_alias_groups.ll =================================================================== --- test/ScopInfo/aliasing_multiple_alias_groups.ll +++ test/ScopInfo/aliasing_multiple_alias_groups.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s --check-prefix=NOAA ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s --check-prefix=NOAA +; RUN: opt %loadPolly -disable-output "-passes=print" \ +; RUN: -aa-pipeline=type-based-aa < %s 2>&1 | FileCheck %s --check-prefix=TBAA ; RUN: opt %loadPolly -polly-scops -analyze -tbaa < %s | FileCheck %s --check-prefix=TBAA ; ; void jd(int *Int0, int *Int1, float *Float0, float *Float1) { Index: test/ScopInfo/aliasing_with_non_affine_access.ll =================================================================== --- test/ScopInfo/aliasing_with_non_affine_access.ll +++ test/ScopInfo/aliasing_with_non_affine_access.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -disable-output -polly-process-unprofitable \ +; RUN: -polly-allow-nonaffine "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -analyze -polly-ast -polly-process-unprofitable -polly-allow-nonaffine < %s | FileCheck %s ; ; @test1 Index: test/ScopInfo/assume_gep_bounds.ll =================================================================== --- test/ScopInfo/assume_gep_bounds.ll +++ test/ScopInfo/assume_gep_bounds.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-function-scops -analyze < %s | FileCheck %s ; void foo(float A[][20][30], long n, long m, long p) { Index: test/ScopInfo/assume_gep_bounds_2.ll =================================================================== --- test/ScopInfo/assume_gep_bounds_2.ll +++ test/ScopInfo/assume_gep_bounds_2.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output < %s -polly-precise-inbounds \ +; RUN: "-passes=print" -aa-pipeline=basic-aa 2>&1 | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-scops -analyze < %s \ ; RUN: -polly-precise-inbounds | FileCheck %s ; Index: test/ScopInfo/assume_gep_bounds_many.ll =================================================================== --- test/ScopInfo/assume_gep_bounds_many.ll +++ test/ScopInfo/assume_gep_bounds_many.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-ignore-aliasing \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -analyze -polly-scops -polly-ignore-aliasing \ ; RUN: < %s | FileCheck %s Index: test/ScopInfo/avoid_new_parameters_from_geps.ll =================================================================== --- test/ScopInfo/avoid_new_parameters_from_geps.ll +++ test/ScopInfo/avoid_new_parameters_from_geps.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; Check that we do no introduce a parameter here that is actually not needed. Index: test/ScopInfo/bool-addrec.ll =================================================================== --- test/ScopInfo/bool-addrec.ll +++ test/ScopInfo/bool-addrec.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-process-unprofitable \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | FileCheck \ +; RUN: %s ; RUN: opt %loadPolly -analyze -polly-ast -polly-process-unprofitable < %s | FileCheck %s ; CHECK: for (int c0 = 0; c0 <= 19999; c0 += 1) { Index: test/ScopInfo/bounded_loop_assumptions.ll =================================================================== --- test/ScopInfo/bounded_loop_assumptions.ll +++ test/ScopInfo/bounded_loop_assumptions.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; The assumed context is tricky here as the equality test for the inner loop Index: test/ScopInfo/branch-references-loop-scev-with-unknown-iterations-2.ll =================================================================== --- test/ScopInfo/branch-references-loop-scev-with-unknown-iterations-2.ll +++ test/ScopInfo/branch-references-loop-scev-with-unknown-iterations-2.ll @@ -1,6 +1,10 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s -check-prefix=DETECT ; RUN: opt %loadPolly -polly-detect -analyze < %s | \ ; RUN: FileCheck %s -check-prefix=DETECT +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s -check-prefix=SCOP ; RUN: opt %loadPolly -polly-scops -analyze < %s | \ ; RUN: FileCheck %s -check-prefix=SCOP Index: test/ScopInfo/branch-references-loop-scev-with-unknown-iterations-3.ll =================================================================== --- test/ScopInfo/branch-references-loop-scev-with-unknown-iterations-3.ll +++ test/ScopInfo/branch-references-loop-scev-with-unknown-iterations-3.ll @@ -1,7 +1,17 @@ -; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze < %s | \ -; RUN: FileCheck %s -check-prefix=NONAFFINE -; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze \ -; RUN: -polly-allow-nonaffine-branches=false < %s | \ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: "-passes=print" < %s -aa-pipeline=basic-aa \ +; RUN: 2>&1 | FileCheck %s -check-prefix=NONAFFINE +; +; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze \ +; RUN: < %s | FileCheck %s -check-prefix=NONAFFINE +; +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: -polly-allow-nonaffine-branches=false \ +; RUN: "-passes=print" < %s -aa-pipeline=basic-aa 2>&1 | \ +; RUN: FileCheck %s -check-prefix=NO-NONEAFFINE +; +; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze \ +; RUN: -polly-allow-nonaffine-branches=false < %s | \ ; RUN: FileCheck %s -check-prefix=NO-NONEAFFINE ; NONAFFINE: Statements { Index: test/ScopInfo/branch-references-loop-scev-with-unknown-iterations.ll =================================================================== --- test/ScopInfo/branch-references-loop-scev-with-unknown-iterations.ll +++ test/ScopInfo/branch-references-loop-scev-with-unknown-iterations.ll @@ -1,5 +1,10 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s -check-prefix=NONAFFINE -allow-empty ; RUN: opt %loadPolly -polly-scops -analyze < %s | \ ; RUN: FileCheck %s -check-prefix=NONAFFINE +; RUN: opt %loadPolly -disable-output -polly-allow-nonaffine-branches=false \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s -check-prefix=NO-NONEAFFINE ; RUN: opt %loadPolly -polly-scops -analyze \ ; RUN: -polly-allow-nonaffine-branches=false < %s | \ ; RUN: FileCheck %s -check-prefix=NO-NONEAFFINE Index: test/ScopInfo/bug_2010_10_22.ll =================================================================== --- test/ScopInfo/bug_2010_10_22.ll +++ test/ScopInfo/bug_2010_10_22.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly "-passes=require" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-scops < %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/ScopInfo/bug_2011_1_5.ll =================================================================== --- test/ScopInfo/bug_2011_1_5.ll +++ test/ScopInfo/bug_2011_1_5.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-scops -analyze < %s ; Bug description: Alias Analysis thinks IntToPtrInst aliases with alloca instructions created by IndependentBlocks Pass. Index: test/ScopInfo/bug_scev_not_fully_eval.ll =================================================================== --- test/ScopInfo/bug_scev_not_fully_eval.ll +++ test/ScopInfo/bug_scev_not_fully_eval.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | not FileCheck %s ; RUN: opt %loadPolly -polly-detect -analyze < %s | not FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/ScopInfo/cfg_consequences.ll =================================================================== --- test/ScopInfo/cfg_consequences.ll +++ test/ScopInfo/cfg_consequences.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -analyze -polly-scops < %s | FileCheck %s ; ; void consequences(int *A, int bool_cond, int lhs, int rhs) { Index: test/ScopInfo/complex-branch-structure.ll =================================================================== --- test/ScopInfo/complex-branch-structure.ll +++ test/ScopInfo/complex-branch-structure.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -pass-remarks-analysis=polly-scops < %s 2>&1 \ +; RUN: "-passes=require" -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -pass-remarks-analysis="polly-scops" -polly-scops \ ; RUN: < %s 2>&1 | FileCheck %s Index: test/ScopInfo/complex-condition.ll =================================================================== --- test/ScopInfo/complex-condition.ll +++ test/ScopInfo/complex-condition.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -pass-remarks-analysis=polly-scops \ +; RUN: -polly-invariant-load-hoisting=true < %s 2>&1 \ +; RUN: "-passes=require" -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -pass-remarks-analysis="polly-scops" -polly-scops \ ; RUN: -polly-invariant-load-hoisting=true \ ; RUN: < %s 2>&1 | FileCheck %s Index: test/ScopInfo/complex-expression.ll =================================================================== --- test/ScopInfo/complex-expression.ll +++ test/ScopInfo/complex-expression.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -pass-remarks-analysis=polly-scops \ +; RUN: -polly-invariant-load-hoisting=true < %s 2>&1 \ +; RUN: "-passes=require" -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -pass-remarks-analysis="polly-scops" -polly-scops \ ; RUN: -polly-invariant-load-hoisting=true \ ; RUN: < %s 2>&1 | FileCheck %s Index: test/ScopInfo/complex-loop-nesting.ll =================================================================== --- test/ScopInfo/complex-loop-nesting.ll +++ test/ScopInfo/complex-loop-nesting.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; CHECK: Statements { Index: test/ScopInfo/complex-successor-structure-2.ll =================================================================== --- test/ScopInfo/complex-successor-structure-2.ll +++ test/ScopInfo/complex-successor-structure-2.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -pass-remarks-analysis=polly-scops \ +; RUN: -polly-invariant-load-hoisting=true < %s 2>&1 \ +; RUN: "-passes=require" -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --allow-empty ; RUN: opt %loadPolly -pass-remarks-analysis="polly-scops" -polly-scops \ ; RUN: -polly-invariant-load-hoisting=true \ ; RUN: < %s 2>&1 | FileCheck %s Index: test/ScopInfo/complex-successor-structure-3.ll =================================================================== --- test/ScopInfo/complex-successor-structure-3.ll +++ test/ScopInfo/complex-successor-structure-3.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -analyze -polly-scops \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s ; Index: test/ScopInfo/complex-successor-structure.ll =================================================================== --- test/ScopInfo/complex-successor-structure.ll +++ test/ScopInfo/complex-successor-structure.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -pass-remarks-analysis=polly-scops \ +; RUN: -polly-invariant-load-hoisting=true < %s 2>&1 \ +; RUN: "-passes=require" -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -pass-remarks-analysis="polly-scops" -polly-scops \ ; RUN: -polly-invariant-load-hoisting=true \ ; RUN: < %s 2>&1 | FileCheck %s Index: test/ScopInfo/complex_domain_binary_condition.ll =================================================================== --- test/ScopInfo/complex_domain_binary_condition.ll +++ test/ScopInfo/complex_domain_binary_condition.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -pass-remarks-analysis=polly-scops < %s 2>&1 \ +; RUN: "-passes=require" -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -pass-remarks-analysis="polly-scops" -polly-scops \ ; RUN: < %s 2>&1 | FileCheck %s ; Index: test/ScopInfo/complex_execution_context.ll =================================================================== --- test/ScopInfo/complex_execution_context.ll +++ test/ScopInfo/complex_execution_context.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -pass-remarks-analysis=polly-scops \ +; RUN: -polly-invariant-load-hoisting=true < %s 2>&1 \ +; RUN: "-passes=require" -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -pass-remarks-analysis="polly-scops" -polly-scops \ ; RUN: -polly-invariant-load-hoisting=true \ ; RUN: < %s 2>&1 | FileCheck %s Index: test/ScopInfo/cond_constant_in_loop.ll =================================================================== --- test/ScopInfo/cond_constant_in_loop.ll +++ test/ScopInfo/cond_constant_in_loop.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ;void f(long a[], long N, long M) { Index: test/ScopInfo/cond_in_loop.ll =================================================================== --- test/ScopInfo/cond_in_loop.ll +++ test/ScopInfo/cond_in_loop.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ;void f(long a[], long N, long M) { Index: test/ScopInfo/const_srem_sdiv.ll =================================================================== --- test/ScopInfo/const_srem_sdiv.ll +++ test/ScopInfo/const_srem_sdiv.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" < %s -aa-pipeline=basic-aa 2>&1 | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s ; Index: test/ScopInfo/constant-non-integer-branch-condition.ll =================================================================== --- test/ScopInfo/constant-non-integer-branch-condition.ll +++ test/ScopInfo/constant-non-integer-branch-condition.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" %s \ +; RUN: 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -analyze -polly-scops %s | FileCheck %s ; ; At some point this caused a problem in the domain generation as we Index: test/ScopInfo/constant_factor_in_parameter.ll =================================================================== --- test/ScopInfo/constant_factor_in_parameter.ll +++ test/ScopInfo/constant_factor_in_parameter.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -analyze -polly-scops < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -analyze -polly-function-scops < %s | FileCheck %s ; ; Check that the constant part of the N * M * 4 expression is not part of the Index: test/ScopInfo/constant_functions_as_unknowns.ll =================================================================== --- test/ScopInfo/constant_functions_as_unknowns.ll +++ test/ScopInfo/constant_functions_as_unknowns.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" Index: test/ScopInfo/constant_functions_multi_dim.ll =================================================================== --- test/ScopInfo/constant_functions_multi_dim.ll +++ test/ScopInfo/constant_functions_multi_dim.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: -polly-detect-full-functions "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze \ ; RUN: -polly-detect-full-functions < %s | FileCheck %s Index: test/ScopInfo/constant_functions_outside_scop_as_unknown.ll =================================================================== --- test/ScopInfo/constant_functions_outside_scop_as_unknown.ll +++ test/ScopInfo/constant_functions_outside_scop_as_unknown.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-process-unprofitable -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-process-unprofitable -polly-scops -analyze < %s | FileCheck %s target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64" Index: test/ScopInfo/constant_start_integer.ll =================================================================== --- test/ScopInfo/constant_start_integer.ll +++ test/ScopInfo/constant_start_integer.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" Index: test/ScopInfo/delinearize-together-all-data-refs.ll =================================================================== --- test/ScopInfo/delinearize-together-all-data-refs.ll +++ test/ScopInfo/delinearize-together-all-data-refs.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: "-passes=print" < %s -aa-pipeline=basic-aa \ +; RUN: 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze < %s | FileCheck %s ; void foo(long n, long m, long o, double A[n][m][o]) { Index: test/ScopInfo/div_by_zero.ll =================================================================== --- test/ScopInfo/div_by_zero.ll +++ test/ScopInfo/div_by_zero.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; void f(int *A, int N) { Index: test/ScopInfo/do-not-model-error-block-accesses.ll =================================================================== --- test/ScopInfo/do-not-model-error-block-accesses.ll +++ test/ScopInfo/do-not-model-error-block-accesses.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-scops -analyze < %s ; Check that we do not crash on this input. Earlier this indeed crashed as Index: test/ScopInfo/eager-binary-and-or-conditions.ll =================================================================== --- test/ScopInfo/eager-binary-and-or-conditions.ll +++ test/ScopInfo/eager-binary-and-or-conditions.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen -analyze < %s ; ; void or(float *A, long n, long m) { Index: test/ScopInfo/early_exit_for_complex_domains.ll =================================================================== --- test/ScopInfo/early_exit_for_complex_domains.ll +++ test/ScopInfo/early_exit_for_complex_domains.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=require" <\ +; RUN: %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-scops -disable-output < %s ; ; Check we do not crash. Index: test/ScopInfo/error-blocks-1.ll =================================================================== --- test/ScopInfo/error-blocks-1.ll +++ test/ScopInfo/error-blocks-1.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: Context: Index: test/ScopInfo/error-blocks-2.ll =================================================================== --- test/ScopInfo/error-blocks-2.ll +++ test/ScopInfo/error-blocks-2.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s ; Index: test/ScopInfo/error-blocks-3.ll =================================================================== --- test/ScopInfo/error-blocks-3.ll +++ test/ScopInfo/error-blocks-3.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-detect-keep-going \ +; RUN: -polly-allow-nonaffine "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -analyze -polly-scops -polly-detect-keep-going -polly-allow-nonaffine < %s | FileCheck %s ; ; TODO: FIXME: Investigate why "-polly-detect-keep-going" is needed to detect Index: test/ScopInfo/escaping_empty_scop.ll =================================================================== --- test/ScopInfo/escaping_empty_scop.ll +++ test/ScopInfo/escaping_empty_scop.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: "-passes=print" < %s -aa-pipeline=basic-aa \ +; RUN: 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze < %s | FileCheck %s ; ; void g(); Index: test/ScopInfo/exit-phi-1.ll =================================================================== --- test/ScopInfo/exit-phi-1.ll +++ test/ScopInfo/exit-phi-1.ll @@ -1,4 +1,9 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -polly-stmt-granularity=bb -S -passes=polly-codegen < %s \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=CODEGEN ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-codegen -S < %s | FileCheck %s --check-prefix=CODEGEN ; ; Check for correct code generation of exit PHIs, even if the same PHI value Index: test/ScopInfo/exit-phi-2.ll =================================================================== --- test/ScopInfo/exit-phi-2.ll +++ test/ScopInfo/exit-phi-2.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze < %s | FileCheck %s ; ; Check that there is no MK_ExitPHI READ access. Index: test/ScopInfo/exit_phi_accesses-2.ll =================================================================== --- test/ScopInfo/exit_phi_accesses-2.ll +++ test/ScopInfo/exit_phi_accesses-2.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -analyze -polly-scops %s | FileCheck %s ; CHECK-LABEL: Function: foo Index: test/ScopInfo/exit_phi_accesses.ll =================================================================== --- test/ScopInfo/exit_phi_accesses.ll +++ test/ScopInfo/exit_phi_accesses.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" %s \ +; RUN: 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -analyze -polly-scops %s | FileCheck %s ; Check that PHI nodes only create PHI access and nothing else (e.g. unnecessary Index: test/ScopInfo/expensive-boundary-context.ll =================================================================== --- test/ScopInfo/expensive-boundary-context.ll +++ test/ScopInfo/expensive-boundary-context.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-scops -analyze \ ; RUN: < %s | FileCheck %s Index: test/ScopInfo/extract_constant_factor_introduces_new_parameter.ll =================================================================== --- test/ScopInfo/extract_constant_factor_introduces_new_parameter.ll +++ test/ScopInfo/extract_constant_factor_introduces_new_parameter.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-scops -analyze < %s ; CHECK: Valid Region for Scop: bb10 => bb16 Index: test/ScopInfo/fortran_array_global_malloc_nonvectored.ll =================================================================== --- test/ScopInfo/fortran_array_global_malloc_nonvectored.ll +++ test/ScopInfo/fortran_array_global_malloc_nonvectored.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -S -polly-detect-fortran-arrays \ +; RUN: -polly-process-unprofitable "-passes=print" < %s \ +; RUN: 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -analyze -S -polly-detect-fortran-arrays \ ; RUN: -polly-process-unprofitable -polly-scops < %s | FileCheck %s Index: test/ScopInfo/fortran_array_global_nonmalloc_nonvectored.ll =================================================================== --- test/ScopInfo/fortran_array_global_nonmalloc_nonvectored.ll +++ test/ScopInfo/fortran_array_global_nonmalloc_nonvectored.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -S -polly-detect-fortran-arrays \ +; RUN: -polly-process-unprofitable "-passes=print" < %s \ +; RUN: 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -analyze -S -polly-detect-fortran-arrays \ ; RUN: -polly-process-unprofitable -polly-scops < %s | FileCheck %s Index: test/ScopInfo/fortran_array_param_nonmalloc_nonvectored.ll =================================================================== --- test/ScopInfo/fortran_array_param_nonmalloc_nonvectored.ll +++ test/ScopInfo/fortran_array_param_nonmalloc_nonvectored.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -disable-output -polly-detect-fortran-arrays \ +; RUN: -polly-allow-nonaffine -polly-invariant-load-hoisting \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -analyze -polly-detect-fortran-arrays \ ; RUN: -polly-scops -polly-allow-nonaffine -polly-invariant-load-hoisting < %s | FileCheck %s Index: test/ScopInfo/fortran_array_param_nonmalloc_nonvectored_read_and_write.ll =================================================================== --- test/ScopInfo/fortran_array_param_nonmalloc_nonvectored_read_and_write.ll +++ test/ScopInfo/fortran_array_param_nonmalloc_nonvectored_read_and_write.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -disable-output -polly-detect-fortran-arrays \ +; RUN: -polly-allow-nonaffine -polly-ignore-aliasing \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -analyze -polly-detect-fortran-arrays \ ; RUN: -polly-scops -polly-allow-nonaffine -polly-ignore-aliasing < %s | FileCheck %s Index: test/ScopInfo/full-function.ll =================================================================== --- test/ScopInfo/full-function.ll +++ test/ScopInfo/full-function.ll @@ -1,5 +1,10 @@ +; RUN: opt %loadPolly -disable-output -polly-detect-full-functions \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s -check-prefix=FULL ; RUN: opt %loadPolly -polly-scops -analyze -polly-detect-full-functions < %s \ ; RUN: | FileCheck %s -check-prefix=FULL +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s -check-prefix=WITHOUT-FULL ; RUN: opt %loadPolly -polly-scops -analyze < %s \ ; RUN: | FileCheck %s -check-prefix=WITHOUT-FULL Index: test/ScopInfo/i1_params.ll =================================================================== --- test/ScopInfo/i1_params.ll +++ test/ScopInfo/i1_params.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; Check that both a signed as well as an unsigned extended i1 parameter Index: test/ScopInfo/infeasible-rtc.ll =================================================================== --- test/ScopInfo/infeasible-rtc.ll +++ test/ScopInfo/infeasible-rtc.ll @@ -1,6 +1,10 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s -check-prefix=DETECT ; RUN: opt %loadPolly -polly-detect -analyze < %s \ ; RUN: | FileCheck %s -check-prefix=DETECT +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s -check-prefix=SCOPS ; RUN: opt %loadPolly -polly-scops -analyze < %s \ ; RUN: | FileCheck %s -check-prefix=SCOPS Index: test/ScopInfo/infeasible_invalid_context.ll =================================================================== --- test/ScopInfo/infeasible_invalid_context.ll +++ test/ScopInfo/infeasible_invalid_context.ll @@ -1,6 +1,11 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s -check-prefix=DETECT ; RUN: opt %loadPolly -polly-detect -analyze < %s \ ; RUN: | FileCheck %s -check-prefix=DETECT +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s -check-prefix=SCOPS \ +; RUN: --allow-empty ; RUN: opt %loadPolly -polly-scops -analyze < %s \ ; RUN: | FileCheck %s -check-prefix=SCOPS Index: test/ScopInfo/int2ptr_ptr2int.ll =================================================================== --- test/ScopInfo/int2ptr_ptr2int.ll +++ test/ScopInfo/int2ptr_ptr2int.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -analyze -polly-scops < %s | FileCheck %s +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s --check-prefix=IR ; RUN: opt %loadPolly -S -polly-codegen < %s | FileCheck %s --check-prefix=IR ; ; void f(long *A, long *ptr, long val) { Index: test/ScopInfo/int2ptr_ptr2int_2.ll =================================================================== --- test/ScopInfo/int2ptr_ptr2int_2.ll +++ test/ScopInfo/int2ptr_ptr2int_2.ll @@ -1,5 +1,11 @@ +; RUN: opt %loadPolly -disable-output -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -analyze -polly-scops \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s +; RUN: opt %loadPolly -S -polly-invariant-load-hoisting=true \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s \ +; RUN: --check-prefix=IR ; RUN: opt %loadPolly -S -polly-codegen \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s --check-prefix=IR ; Index: test/ScopInfo/integers.ll =================================================================== --- test/ScopInfo/integers.ll +++ test/ScopInfo/integers.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; Check that we correctly convert integers to isl values. Index: test/ScopInfo/inter-error-bb-dependence.ll =================================================================== --- test/ScopInfo/inter-error-bb-dependence.ll +++ test/ScopInfo/inter-error-bb-dependence.ll @@ -1,4 +1,7 @@ -; RUN: opt %loadPolly -pass-remarks-analysis="polly-scops" -polly-scops -analyze < %s 2>&1 > /dev/null | FileCheck %s +; RUN: opt %loadPolly -pass-remarks-analysis=polly-scops -disable-output < %s \ +; RUN: 2>&1 "-passes=print" >/dev/null \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s +; RUN: opt %loadPolly -pass-remarks-analysis="polly-scops" -polly-scops -analyze < %s 2>&1 >/dev/null | FileCheck %s ; ; Error statements (%bb33) do not require their uses to be verified. ; In this case it uses %tmp32 from %bb31 which is not available because Index: test/ScopInfo/inter_bb_scalar_dep.ll =================================================================== --- test/ScopInfo/inter_bb_scalar_dep.ll +++ test/ScopInfo/inter_bb_scalar_dep.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa < %s 2>&1 | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-scops \ ; RUN: -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s Index: test/ScopInfo/intra-non-affine-stmt-phi-node.ll =================================================================== --- test/ScopInfo/intra-non-affine-stmt-phi-node.ll +++ test/ScopInfo/intra-non-affine-stmt-phi-node.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output -S "-passes=print" \ +; RUN: < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze \ ; RUN: -S < %s | FileCheck %s Index: test/ScopInfo/intra_and_inter_bb_scalar_dep.ll =================================================================== --- test/ScopInfo/intra_and_inter_bb_scalar_dep.ll +++ test/ScopInfo/intra_and_inter_bb_scalar_dep.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" -aa-pipeline=basic-aa < %s 2>&1 | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-scops -analyze \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s Index: test/ScopInfo/intra_bb_scalar_dep.ll =================================================================== --- test/ScopInfo/intra_bb_scalar_dep.ll +++ test/ScopInfo/intra_bb_scalar_dep.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" -aa-pipeline=basic-aa < %s 2>&1 | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-scops -analyze \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s Index: test/ScopInfo/intrinsics.ll =================================================================== --- test/ScopInfo/intrinsics.ll +++ test/ScopInfo/intrinsics.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-print-instructions \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze -polly-print-instructions < %s | FileCheck %s ; ; Verify that we remove the ignored intrinsics from the instruction list. Index: test/ScopInfo/invalid_add_rec_after_invariant_load_remapping.ll =================================================================== --- test/ScopInfo/invalid_add_rec_after_invariant_load_remapping.ll +++ test/ScopInfo/invalid_add_rec_after_invariant_load_remapping.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-scops -analyze < %s ; ; This crased at some point as we place %1 and %4 in the same equivalence class Index: test/ScopInfo/invariant-loads-leave-read-only-statements.ll =================================================================== --- test/ScopInfo/invariant-loads-leave-read-only-statements.ll +++ test/ScopInfo/invariant-loads-leave-read-only-statements.ll @@ -1,4 +1,9 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -analyze < %s ; CHECK: Statements { Index: test/ScopInfo/invariant_load.ll =================================================================== --- test/ScopInfo/invariant_load.ll +++ test/ScopInfo/invariant_load.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s ; ; CHECK: Invariant Accesses: Index: test/ScopInfo/invariant_load_access_classes_different_base_type.ll =================================================================== --- test/ScopInfo/invariant_load_access_classes_different_base_type.ll +++ test/ScopInfo/invariant_load_access_classes_different_base_type.ll @@ -1,4 +1,10 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s \ +; RUN: --check-prefix=CODEGEN ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -S < %s | FileCheck %s --check-prefix=CODEGEN ; ; struct { Index: test/ScopInfo/invariant_load_access_classes_different_base_type_escaping.ll =================================================================== --- test/ScopInfo/invariant_load_access_classes_different_base_type_escaping.ll +++ test/ScopInfo/invariant_load_access_classes_different_base_type_escaping.ll @@ -1,4 +1,10 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s \ +; RUN: --check-prefix=CODEGEN ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -S < %s | FileCheck %s --check-prefix=CODEGEN ; ; struct { Index: test/ScopInfo/invariant_load_access_classes_different_base_type_same_pointer.ll =================================================================== --- test/ScopInfo/invariant_load_access_classes_different_base_type_same_pointer.ll +++ test/ScopInfo/invariant_load_access_classes_different_base_type_same_pointer.ll @@ -1,4 +1,10 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s \ +; RUN: --check-prefix=CODEGEN ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -S < %s | FileCheck %s --check-prefix=CODEGEN ; ; int U; Index: test/ScopInfo/invariant_load_access_classes_different_base_type_same_pointer_escaping.ll =================================================================== --- test/ScopInfo/invariant_load_access_classes_different_base_type_same_pointer_escaping.ll +++ test/ScopInfo/invariant_load_access_classes_different_base_type_same_pointer_escaping.ll @@ -1,4 +1,10 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s \ +; RUN: --check-prefix=CODEGEN ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -S < %s | FileCheck %s --check-prefix=CODEGEN ; ; int U; Index: test/ScopInfo/invariant_load_addrec_sum.ll =================================================================== --- test/ScopInfo/invariant_load_addrec_sum.ll +++ test/ScopInfo/invariant_load_addrec_sum.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true \ +; RUN: -polly-ignore-aliasing -polly-process-unprofitable -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -polly-ignore-aliasing -polly-process-unprofitable -analyze < %s | FileCheck %s ; ; CHECK: Region: %entry.split---%if.end Index: test/ScopInfo/invariant_load_base_pointer.ll =================================================================== --- test/ScopInfo/invariant_load_base_pointer.ll +++ test/ScopInfo/invariant_load_base_pointer.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true \ +; RUN: -polly-ignore-aliasing -polly-process-unprofitable -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -polly-ignore-aliasing -polly-process-unprofitable -analyze < %s | FileCheck %s ; ; CHECK: Invariant Accesses: Index: test/ScopInfo/invariant_load_base_pointer_conditional.ll =================================================================== --- test/ScopInfo/invariant_load_base_pointer_conditional.ll +++ test/ScopInfo/invariant_load_base_pointer_conditional.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true \ +; RUN: -polly-ignore-aliasing -polly-process-unprofitable -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -polly-ignore-aliasing -polly-process-unprofitable -analyze < %s | FileCheck %s ; ; CHECK: Invariant Accesses: Index: test/ScopInfo/invariant_load_base_pointer_in_conditional.ll =================================================================== --- test/ScopInfo/invariant_load_base_pointer_in_conditional.ll +++ test/ScopInfo/invariant_load_base_pointer_in_conditional.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true \ +; RUN: -polly-ignore-aliasing -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -polly-ignore-aliasing -analyze < %s | FileCheck %s ; ; CHECK: Invariant Accesses: Index: test/ScopInfo/invariant_load_canonicalize_array_baseptrs.ll =================================================================== --- test/ScopInfo/invariant_load_canonicalize_array_baseptrs.ll +++ test/ScopInfo/invariant_load_canonicalize_array_baseptrs.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output < %s -polly-invariant-load-hoisting \ +; RUN: "-passes=print" 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s \ ; RUN: -polly-invariant-load-hoisting \ ; RUN: | FileCheck %s Index: test/ScopInfo/invariant_load_canonicalize_array_baseptrs_2.ll =================================================================== --- test/ScopInfo/invariant_load_canonicalize_array_baseptrs_2.ll +++ test/ScopInfo/invariant_load_canonicalize_array_baseptrs_2.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output < %s -polly-invariant-load-hoisting \ +; RUN: "-passes=print" 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s \ ; RUN: -polly-invariant-load-hoisting \ ; RUN: | FileCheck %s Index: test/ScopInfo/invariant_load_canonicalize_array_baseptrs_3.ll =================================================================== --- test/ScopInfo/invariant_load_canonicalize_array_baseptrs_3.ll +++ test/ScopInfo/invariant_load_canonicalize_array_baseptrs_3.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output < %s -polly-invariant-load-hoisting \ +; RUN: "-passes=print" 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s \ ; RUN: -polly-invariant-load-hoisting \ ; RUN: | FileCheck %s Index: test/ScopInfo/invariant_load_canonicalize_array_baseptrs_4.ll =================================================================== --- test/ScopInfo/invariant_load_canonicalize_array_baseptrs_4.ll +++ test/ScopInfo/invariant_load_canonicalize_array_baseptrs_4.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output < %s -polly-invariant-load-hoisting \ +; RUN: "-passes=print" 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s \ ; RUN: -polly-invariant-load-hoisting \ ; RUN: | FileCheck %s Index: test/ScopInfo/invariant_load_canonicalize_array_baseptrs_4b.ll =================================================================== --- test/ScopInfo/invariant_load_canonicalize_array_baseptrs_4b.ll +++ test/ScopInfo/invariant_load_canonicalize_array_baseptrs_4b.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output < %s -polly-invariant-load-hoisting \ +; RUN: "-passes=print" 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s \ ; RUN: -polly-invariant-load-hoisting \ ; RUN: | FileCheck %s Index: test/ScopInfo/invariant_load_canonicalize_array_baseptrs_4c.ll =================================================================== --- test/ScopInfo/invariant_load_canonicalize_array_baseptrs_4c.ll +++ test/ScopInfo/invariant_load_canonicalize_array_baseptrs_4c.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output < %s -polly-invariant-load-hoisting \ +; RUN: "-passes=print" 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s \ ; RUN: -polly-invariant-load-hoisting \ ; RUN: | FileCheck %s Index: test/ScopInfo/invariant_load_canonicalize_array_baseptrs_5.ll =================================================================== --- test/ScopInfo/invariant_load_canonicalize_array_baseptrs_5.ll +++ test/ScopInfo/invariant_load_canonicalize_array_baseptrs_5.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output < %s -polly-invariant-load-hoisting \ +; RUN: "-passes=print" 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s \ ; RUN: -polly-invariant-load-hoisting \ ; RUN: | FileCheck %s Index: test/ScopInfo/invariant_load_complex_condition.ll =================================================================== --- test/ScopInfo/invariant_load_complex_condition.ll +++ test/ScopInfo/invariant_load_complex_condition.ll @@ -1,3 +1,8 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -S -disable-output \ +; RUN: -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: <%s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -S -polly-scops -analyze \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s Index: test/ScopInfo/invariant_load_condition.ll =================================================================== --- test/ScopInfo/invariant_load_condition.ll +++ test/ScopInfo/invariant_load_condition.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-process-unprofitable \ +; RUN: -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-process-unprofitable -polly-scops -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s ; ; CHECK: Invariant Accesses: Index: test/ScopInfo/invariant_load_dereferenceable.ll =================================================================== --- test/ScopInfo/invariant_load_dereferenceable.ll +++ test/ScopInfo/invariant_load_dereferenceable.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=function(print,print)" < %s\ +; RUN: 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -polly-scops \ ; RUN: -polly-invariant-load-hoisting=true \ ; RUN: -analyze < %s | FileCheck %s Index: test/ScopInfo/invariant_load_distinct_parameter_valuations.ll =================================================================== --- test/ScopInfo/invariant_load_distinct_parameter_valuations.ll +++ test/ScopInfo/invariant_load_distinct_parameter_valuations.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s ; ; Check that we do not consolidate the invariant loads to smp[order - 1] and Index: test/ScopInfo/invariant_load_in_non_affine.ll =================================================================== --- test/ScopInfo/invariant_load_in_non_affine.ll +++ test/ScopInfo/invariant_load_in_non_affine.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-detect -analyze \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s ; Index: test/ScopInfo/invariant_load_loop_ub.ll =================================================================== --- test/ScopInfo/invariant_load_loop_ub.ll +++ test/ScopInfo/invariant_load_loop_ub.ll @@ -1,4 +1,12 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true \ +; RUN: -polly-process-unprofitable -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -polly-process-unprofitable -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true \ +; RUN: -polly-process-unprofitable -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-function-scops -polly-invariant-load-hoisting=true -polly-process-unprofitable -analyze < %s | FileCheck %s ; ; CHECK: Invariant Accesses: Index: test/ScopInfo/invariant_load_ptr_ptr_noalias.ll =================================================================== --- test/ScopInfo/invariant_load_ptr_ptr_noalias.ll +++ test/ScopInfo/invariant_load_ptr_ptr_noalias.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true \ +; RUN: -polly-ignore-aliasing -disable-output \ +; RUN: "-passes=print" -aa-pipeline=type-based-aa < %s \ +; RUN: 2>&1 | FileCheck %s ; RUN: opt %loadPolly -tbaa -polly-scops -polly-invariant-load-hoisting=true -polly-ignore-aliasing \ ; RUN: -analyze < %s | FileCheck %s ; Index: test/ScopInfo/invariant_load_scalar_dep.ll =================================================================== --- test/ScopInfo/invariant_load_scalar_dep.ll +++ test/ScopInfo/invariant_load_scalar_dep.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-process-unprofitable \ +; RUN: -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-process-unprofitable -polly-scops -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s ; ; CHECK: Invariant Accesses: Index: test/ScopInfo/invariant_load_stmt_domain.ll =================================================================== --- test/ScopInfo/invariant_load_stmt_domain.ll +++ test/ScopInfo/invariant_load_stmt_domain.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s ; This test case verifies that the statement domain of the invariant access Index: test/ScopInfo/invariant_load_zext_parameter-2.ll =================================================================== --- test/ScopInfo/invariant_load_zext_parameter-2.ll +++ test/ScopInfo/invariant_load_zext_parameter-2.ll @@ -1,4 +1,11 @@ +; RUN: opt %loadPolly -scalar-evolution-max-value-compare-depth=3 \ +; RUN: -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -scalar-evolution-max-value-compare-depth=3 -polly-scops -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -scalar-evolution-max-value-compare-depth=3 \ +; RUN: -polly-invariant-load-hoisting=true -disable-output \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -scalar-evolution-max-value-compare-depth=3 -polly-codegen -polly-invariant-load-hoisting=true -analyze < %s ; ; Stress test for the code generation of invariant accesses. Index: test/ScopInfo/invariant_load_zext_parameter.ll =================================================================== --- test/ScopInfo/invariant_load_zext_parameter.ll +++ test/ScopInfo/invariant_load_zext_parameter.ll @@ -1,4 +1,10 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s \ +; RUN: --check-prefix=CODEGEN ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -S < %s | FileCheck %s --check-prefix=CODEGEN ; ; void f(int *I0, int *I1, int *V) { Index: test/ScopInfo/invariant_load_zextended_in_own_execution_context.ll =================================================================== --- test/ScopInfo/invariant_load_zextended_in_own_execution_context.ll +++ test/ScopInfo/invariant_load_zextended_in_own_execution_context.ll @@ -1,4 +1,9 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -analyze < %s ; ; CHECK: Execution Context: [p_0_loaded_from_currpc] -> { : } Index: test/ScopInfo/invariant_loads_complicated_dependences.ll =================================================================== --- test/ScopInfo/invariant_loads_complicated_dependences.ll +++ test/ScopInfo/invariant_loads_complicated_dependences.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s ; ; CHECK: Invariant Accesses: { Index: test/ScopInfo/invariant_loads_cyclic_dependences.ll =================================================================== --- test/ScopInfo/invariant_loads_cyclic_dependences.ll +++ test/ScopInfo/invariant_loads_cyclic_dependences.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --allow-empty ; RUN: opt %loadPolly -analyze -polly-scops -polly-invariant-load-hoisting=true < %s | FileCheck %s ; ; Negative test. If we assume UB[*V] to be invariant we get a cyclic Index: test/ScopInfo/invariant_loop_bounds.ll =================================================================== --- test/ScopInfo/invariant_loop_bounds.ll +++ test/ScopInfo/invariant_loop_bounds.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s ; ; CHECK: Invariant Accesses: { Index: test/ScopInfo/invariant_same_loop_bound_multiple_times-1.ll =================================================================== --- test/ScopInfo/invariant_same_loop_bound_multiple_times-1.ll +++ test/ScopInfo/invariant_same_loop_bound_multiple_times-1.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s ; ; Verify that we only have one parameter and one invariant load for all Index: test/ScopInfo/invariant_same_loop_bound_multiple_times-2.ll =================================================================== --- test/ScopInfo/invariant_same_loop_bound_multiple_times-2.ll +++ test/ScopInfo/invariant_same_loop_bound_multiple_times-2.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s ; ; Verify that we only have one parameter and one invariant load for all Index: test/ScopInfo/isl_aff_out_of_bounds.ll =================================================================== --- test/ScopInfo/isl_aff_out_of_bounds.ll +++ test/ScopInfo/isl_aff_out_of_bounds.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly "-passes=require" -aa-pipeline=basic-aa < \ +; RUN: %s 2>&1 ; RUN: opt %loadPolly -basicaa -polly-detect < %s ; Used to fail with: Index: test/ScopInfo/isl_trip_count_01.ll =================================================================== --- test/ScopInfo/isl_trip_count_01.ll +++ test/ScopInfo/isl_trip_count_01.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: [M, N] -> { Stmt_while_body[i0] : i0 > 0 and 4i0 <= -M + N; Stmt_while_body[0] }; Index: test/ScopInfo/isl_trip_count_02.ll =================================================================== --- test/ScopInfo/isl_trip_count_02.ll +++ test/ScopInfo/isl_trip_count_02.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; TODO: We do not allow unbounded loops at the moment. Index: test/ScopInfo/isl_trip_count_03.ll =================================================================== --- test/ScopInfo/isl_trip_count_03.ll +++ test/ScopInfo/isl_trip_count_03.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; Test comes from a bug (15771) or better a feature request. It was not allowed Index: test/ScopInfo/isl_trip_count_multiple_exiting_blocks.ll =================================================================== --- test/ScopInfo/isl_trip_count_multiple_exiting_blocks.ll +++ test/ScopInfo/isl_trip_count_multiple_exiting_blocks.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: Domain := Index: test/ScopInfo/licm_potential_store.ll =================================================================== --- test/ScopInfo/licm_potential_store.ll +++ test/ScopInfo/licm_potential_store.ll @@ -1,10 +1,16 @@ -; RUN: opt %loadPolly -basicaa -sroa -instcombine -simplifycfg -tailcallopt \ +; RUN: opt %loadPolly -disable-output \ +; RUN: "-passes=function(sroa,instcombine,simplify-cfg,simplify-cfg,reassociate,loop(rotate),instcombine,loop(indvars),polly-prepare,print)"\ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s --check-prefix=NOLICM +; RUN: opt %loadPolly -basicaa -sroa -instcombine -simplifycfg \ ; RUN: -simplifycfg -reassociate -loop-rotate -instcombine -indvars \ ; RUN: -polly-prepare -polly-scops -analyze < %s \ ; RUN: \ ; RUN: | FileCheck %s --check-prefix=NOLICM -; RUN: opt %loadPolly -basicaa -sroa -instcombine -simplifycfg -tailcallopt \ +; RUN: opt %loadPolly -disable-output \ +; RUN: "-passes=function(sroa,instcombine,simplify-cfg,simplify-cfg,reassociate,loop(rotate),instcombine,require,loop(indvars,licm),polly-prepare,print)"\ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s --check-prefix=LICM +; RUN: opt %loadPolly -basicaa -sroa -instcombine -simplifycfg \ ; RUN: -simplifycfg -reassociate -loop-rotate -instcombine -indvars -licm \ ; RUN: -polly-prepare -polly-scops -analyze < %s \ ; RUN: \ Index: test/ScopInfo/licm_reduction.ll =================================================================== --- test/ScopInfo/licm_reduction.ll +++ test/ScopInfo/licm_reduction.ll @@ -1,4 +1,10 @@ +; RUN: opt %loadPolly -disable-output \ +; RUN: "-passes=function(loop(rotate,indvars),polly-prepare,print)"\ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -loop-rotate -indvars -polly-prepare -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output \ +; RUN: "-passes=function(loop(rotate,indvars,licm),polly-prepare,print)"\ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -loop-rotate -indvars -licm -polly-prepare -polly-scops -analyze < %s | FileCheck %s ; ; XFAIL: * Index: test/ScopInfo/licm_reduction_nested.ll =================================================================== --- test/ScopInfo/licm_reduction_nested.ll +++ test/ScopInfo/licm_reduction_nested.ll @@ -1,4 +1,10 @@ +; RUN: opt %loadPolly -disable-output \ +; RUN: "-passes=function(loop(rotate,indvars),polly-prepare,print)"\ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -loop-rotate -indvars -polly-prepare -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output \ +; RUN: "-passes=function(loop(rotate,indvars,licm),polly-prepare,print)"\ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -loop-rotate -indvars -licm -polly-prepare -polly-scops -analyze < %s | FileCheck %s ; ; XFAIL: * Index: test/ScopInfo/licm_store.ll =================================================================== --- test/ScopInfo/licm_store.ll +++ test/ScopInfo/licm_store.ll @@ -1,4 +1,10 @@ +; RUN: opt %loadPolly -disable-output \ +; RUN: "-passes=function(loop(rotate,indvars),polly-prepare,print)"\ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -loop-rotate -indvars -polly-prepare -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output \ +; RUN: "-passes=function(loop(rotate,indvars,licm),polly-prepare,print)"\ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -loop-rotate -indvars -licm -polly-prepare -polly-scops -analyze < %s | FileCheck %s ; ; XFAIL: * Index: test/ScopInfo/long-compile-time-alias-analysis.ll =================================================================== --- test/ScopInfo/long-compile-time-alias-analysis.ll +++ test/ScopInfo/long-compile-time-alias-analysis.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-scops -analyze < %s ; Verify that the compilation of this test case does not take infinite time. Index: test/ScopInfo/long-sequence-of-error-blocks-2.ll =================================================================== --- test/ScopInfo/long-sequence-of-error-blocks-2.ll +++ test/ScopInfo/long-sequence-of-error-blocks-2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" Index: test/ScopInfo/long-sequence-of-error-blocks.ll =================================================================== --- test/ScopInfo/long-sequence-of-error-blocks.ll +++ test/ScopInfo/long-sequence-of-error-blocks.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s Index: test/ScopInfo/loop-multiexit-succ-cond.ll =================================================================== --- test/ScopInfo/loop-multiexit-succ-cond.ll +++ test/ScopInfo/loop-multiexit-succ-cond.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s --check-prefix=IR ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s --check-prefix=IR ; ; Check that we do not crash and generate valid IR. Index: test/ScopInfo/loop_affine_bound_0.ll =================================================================== --- test/ScopInfo/loop_affine_bound_0.ll +++ test/ScopInfo/loop_affine_bound_0.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-function-scops -analyze < %s | FileCheck %s ; void f(long a[][128], long N, long M) { Index: test/ScopInfo/loop_affine_bound_1.ll =================================================================== --- test/ScopInfo/loop_affine_bound_1.ll +++ test/ScopInfo/loop_affine_bound_1.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-function-scops -analyze < %s | FileCheck %s ;void f(long a[][128], long N, long M) { Index: test/ScopInfo/loop_affine_bound_2.ll =================================================================== --- test/ScopInfo/loop_affine_bound_2.ll +++ test/ScopInfo/loop_affine_bound_2.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-function-scops -analyze < %s | FileCheck %s ; void f(long a[][128], long N, long M) { Index: test/ScopInfo/loop_carry.ll =================================================================== --- test/ScopInfo/loop_carry.ll +++ test/ScopInfo/loop_carry.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -basicaa -polly-stmt-granularity=bb -polly-scops -analyze < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/ScopInfo/many-scalar-dependences.ll =================================================================== --- test/ScopInfo/many-scalar-dependences.ll +++ test/ScopInfo/many-scalar-dependences.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze < %s | FileCheck %s ; ; void f(float a[100][100]) { Index: test/ScopInfo/max-loop-depth.ll =================================================================== --- test/ScopInfo/max-loop-depth.ll +++ test/ScopInfo/max-loop-depth.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; void bar(); Index: test/ScopInfo/memcpy-raw-source.ll =================================================================== --- test/ScopInfo/memcpy-raw-source.ll +++ test/ScopInfo/memcpy-raw-source.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" \ +; RUN: "-aa-pipeline=basic-aa,scoped-noalias-aa,type-based-aa" < %s 2>&1 ; RUN: opt %loadPolly -basicaa -scoped-noalias -tbaa -polly-scops -analyze < %s ; ; Ensure that ScopInfo's alias analysis llvm.memcpy for, Index: test/ScopInfo/memcpy.ll =================================================================== --- test/ScopInfo/memcpy.ll +++ test/ScopInfo/memcpy.ll @@ -1,4 +1,10 @@ +; RUN: opt %loadPolly -polly-allow-differing-element-types -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa < %s 2>&1 | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-allow-differing-element-types -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -S -polly-allow-differing-element-types \ +; RUN: -passes=polly-codegen -aa-pipeline=basic-aa < %s 2>&1 | FileCheck \ +; RUN: --check-prefix=IR %s ; RUN: opt %loadPolly -S -basicaa -polly-allow-differing-element-types -polly-codegen < %s | FileCheck --check-prefix=IR %s ; ; CHECK: Arrays { Index: test/ScopInfo/memmove.ll =================================================================== --- test/ScopInfo/memmove.ll +++ test/ScopInfo/memmove.ll @@ -1,4 +1,10 @@ +; RUN: opt %loadPolly -polly-allow-differing-element-types -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa < %s 2>&1 | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-allow-differing-element-types -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -S -polly-allow-differing-element-types \ +; RUN: -passes=polly-codegen -aa-pipeline=basic-aa < %s 2>&1 | FileCheck \ +; RUN: --check-prefix=IR %s ; RUN: opt %loadPolly -S -basicaa -polly-allow-differing-element-types -polly-codegen < %s | FileCheck --check-prefix=IR %s ; ; CHECK: Arrays { Index: test/ScopInfo/memset.ll =================================================================== --- test/ScopInfo/memset.ll +++ test/ScopInfo/memset.ll @@ -1,4 +1,10 @@ +; RUN: opt %loadPolly -polly-allow-differing-element-types -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-allow-differing-element-types -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -S -polly-allow-differing-element-types \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck \ +; RUN: --check-prefix=IR %s ; RUN: opt %loadPolly -S -polly-allow-differing-element-types -polly-codegen < %s | FileCheck --check-prefix=IR %s ; ; CHECK: Arrays { Index: test/ScopInfo/memset_null.ll =================================================================== --- test/ScopInfo/memset_null.ll +++ test/ScopInfo/memset_null.ll @@ -1,4 +1,9 @@ +; RUN: opt %loadPolly -polly-allow-modref-calls -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-allow-modref-calls -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -polly-allow-modref-calls -S -passes=polly-codegen < %s \ +; RUN: 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-allow-modref-calls -S -polly-codegen < %s ; ; Verify we can handle a memset to "null" and that we do not model it. Index: test/ScopInfo/mismatching-array-dimensions.ll =================================================================== --- test/ScopInfo/mismatching-array-dimensions.ll +++ test/ScopInfo/mismatching-array-dimensions.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; CHECK-NOT: AssumedContext Index: test/ScopInfo/mod_ref_access_pointee_arguments.ll =================================================================== --- test/ScopInfo/mod_ref_access_pointee_arguments.ll +++ test/ScopInfo/mod_ref_access_pointee_arguments.ll @@ -1,7 +1,15 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: -polly-allow-modref-calls "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -basicaa -polly-stmt-granularity=bb -polly-scops -analyze -polly-allow-modref-calls \ -; RUN: < %s | FileCheck %s +; RUN: < %s | FileCheck %s +; +; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-allow-modref-calls \ +; RUN: -disable-output -passes=polly-codegen -aa-pipeline=basic-aa < %s 2>&1 +; ; RUN: opt %loadPolly -basicaa -polly-stmt-granularity=bb -polly-codegen -polly-allow-modref-calls \ -; RUN: -disable-output < %s +; RUN: -disable-output < %s ; ; Verify that we model the may-write access of the prefetch intrinsic ; correctly, thus that A is accessed by it but B is not. Index: test/ScopInfo/mod_ref_read_pointee_arguments.ll =================================================================== --- test/ScopInfo/mod_ref_read_pointee_arguments.ll +++ test/ScopInfo/mod_ref_read_pointee_arguments.ll @@ -1,7 +1,15 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: -polly-allow-modref-calls "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -basicaa -polly-stmt-granularity=bb -polly-scops -analyze -polly-allow-modref-calls \ -; RUN: < %s | FileCheck %s -; RUN: opt %loadPolly -basicaa -polly-codegen -disable-output \ -; RUN: -polly-allow-modref-calls < %s +; RUN: < %s | FileCheck %s +; +; RUN: opt %loadPolly -disable-output -polly-allow-modref-calls \ +; RUN: -passes=polly-codegen -aa-pipeline=basic-aa < %s 2>&1 +; +; RUN: opt %loadPolly -basicaa -polly-codegen -disable-output \ +; RUN: -polly-allow-modref-calls < %s ; ; Verify that we model the read access of the gcread intrinsic ; correctly, thus that A is read by it but B is not. Index: test/ScopInfo/mod_ref_read_pointer.ll =================================================================== --- test/ScopInfo/mod_ref_read_pointer.ll +++ test/ScopInfo/mod_ref_read_pointer.ll @@ -1,5 +1,10 @@ +; RUN: opt %loadPolly -disable-output -polly-allow-modref-calls \ +; RUN: "-passes=print" -aa-pipeline=basic-aa < %s 2>&1 | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-scops -analyze -polly-allow-modref-calls \ ; RUN: < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output -polly-allow-modref-calls \ +; RUN: -passes=polly-codegen -aa-pipeline=basic-aa < %s 2>&1 ; RUN: opt %loadPolly -basicaa -polly-codegen -disable-output \ ; RUN: -polly-allow-modref-calls < %s ; Index: test/ScopInfo/mod_ref_read_pointers.ll =================================================================== --- test/ScopInfo/mod_ref_read_pointers.ll +++ test/ScopInfo/mod_ref_read_pointers.ll @@ -1,5 +1,10 @@ +; RUN: opt %loadPolly -disable-output -polly-allow-modref-calls \ +; RUN: "-passes=print" -aa-pipeline=basic-aa < %s 2>&1 | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-scops -analyze -polly-allow-modref-calls \ ; RUN: < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output -polly-allow-modref-calls \ +; RUN: -passes=polly-codegen -aa-pipeline=basic-aa < %s 2>&1 ; RUN: opt %loadPolly -basicaa -polly-codegen -disable-output \ ; RUN: -polly-allow-modref-calls < %s ; Index: test/ScopInfo/modulo_zext_1.ll =================================================================== --- test/ScopInfo/modulo_zext_1.ll +++ test/ScopInfo/modulo_zext_1.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: Assumed Context: Index: test/ScopInfo/modulo_zext_2.ll =================================================================== --- test/ScopInfo/modulo_zext_2.ll +++ test/ScopInfo/modulo_zext_2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: Assumed Context: Index: test/ScopInfo/modulo_zext_3.ll =================================================================== --- test/ScopInfo/modulo_zext_3.ll +++ test/ScopInfo/modulo_zext_3.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: Assumed Context: Index: test/ScopInfo/multi-scop.ll =================================================================== --- test/ScopInfo/multi-scop.ll +++ test/ScopInfo/multi-scop.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-detect -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-scops -analyze < %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" Index: test/ScopInfo/multidim_2d-diagonal-matrix.ll =================================================================== --- test/ScopInfo/multidim_2d-diagonal-matrix.ll +++ test/ScopInfo/multidim_2d-diagonal-matrix.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-function-scops -analyze < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" Index: test/ScopInfo/multidim_2d_outer_parametric_offset.ll =================================================================== --- test/ScopInfo/multidim_2d_outer_parametric_offset.ll +++ test/ScopInfo/multidim_2d_outer_parametric_offset.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" Index: test/ScopInfo/multidim_2d_parametric_array_static_loop_bounds.ll =================================================================== --- test/ScopInfo/multidim_2d_parametric_array_static_loop_bounds.ll +++ test/ScopInfo/multidim_2d_parametric_array_static_loop_bounds.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" Index: test/ScopInfo/multidim_2d_with_modref_call.ll =================================================================== --- test/ScopInfo/multidim_2d_with_modref_call.ll +++ test/ScopInfo/multidim_2d_with_modref_call.ll @@ -1,9 +1,20 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: -polly-allow-modref-calls -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze -polly-allow-modref-calls \ -; RUN: -polly-invariant-load-hoisting=true \ -; RUN: < %s | FileCheck %s +; RUN: -polly-invariant-load-hoisting=true \ +; RUN: < %s | FileCheck %s +; +; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-allow-nonaffine \ +; RUN: -disable-output -polly-invariant-load-hoisting=true \ +; RUN: -polly-allow-modref-calls "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s --check-prefix=NONAFFINE +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -polly-allow-nonaffine -analyze \ -; RUN: -polly-invariant-load-hoisting=true \ -; RUN: -polly-allow-modref-calls < %s | FileCheck %s --check-prefix=NONAFFINE +; RUN: -polly-invariant-load-hoisting=true \ +; RUN: -polly-allow-modref-calls < %s | FileCheck %s --check-prefix=NONAFFINE ; TODO: We should delinearize the accesses despite the use in a call to a ; readonly function. For now we verify we do not delinearize them though. Index: test/ScopInfo/multidim_2d_with_modref_call_2.ll =================================================================== --- test/ScopInfo/multidim_2d_with_modref_call_2.ll +++ test/ScopInfo/multidim_2d_with_modref_call_2.ll @@ -1,6 +1,17 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: -polly-allow-modref-calls -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze -polly-allow-modref-calls \ ; RUN: -polly-invariant-load-hoisting=true \ ; RUN: < %s | FileCheck %s +; +; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-allow-nonaffine \ +; RUN: -polly-invariant-load-hoisting=true -polly-allow-modref-calls \ +; RUN: -disable-output "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s --check-prefix=NONAFFINE +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -polly-allow-nonaffine \ ; RUN: -polly-invariant-load-hoisting=true \ ; RUN: -polly-allow-modref-calls -analyze < %s | FileCheck %s --check-prefix=NONAFFINE Index: test/ScopInfo/multidim_3d_parametric_array_static_loop_bounds.ll =================================================================== --- test/ScopInfo/multidim_3d_parametric_array_static_loop_bounds.ll +++ test/ScopInfo/multidim_3d_parametric_array_static_loop_bounds.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" Index: test/ScopInfo/multidim_fixedsize_different_dimensionality.ll =================================================================== --- test/ScopInfo/multidim_fixedsize_different_dimensionality.ll +++ test/ScopInfo/multidim_fixedsize_different_dimensionality.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; #define N 400 Index: test/ScopInfo/multidim_fixedsize_multi_offset.ll =================================================================== --- test/ScopInfo/multidim_fixedsize_multi_offset.ll +++ test/ScopInfo/multidim_fixedsize_multi_offset.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: Context: Index: test/ScopInfo/multidim_fold_constant_dim.ll =================================================================== --- test/ScopInfo/multidim_fold_constant_dim.ll +++ test/ScopInfo/multidim_fold_constant_dim.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output -S "-passes=print" \ +; RUN: < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze -S < %s | FileCheck %s ; ; struct com { Index: test/ScopInfo/multidim_fold_constant_dim_zero.ll =================================================================== --- test/ScopInfo/multidim_fold_constant_dim_zero.ll +++ test/ScopInfo/multidim_fold_constant_dim_zero.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output -debug -S \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze -debug -S < %s 2>&1 | FileCheck %s ; REQUIRES: asserts Index: test/ScopInfo/multidim_fortran_2d.ll =================================================================== --- test/ScopInfo/multidim_fortran_2d.ll +++ test/ScopInfo/multidim_fortran_2d.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s Index: test/ScopInfo/multidim_fortran_2d_params.ll =================================================================== --- test/ScopInfo/multidim_fortran_2d_params.ll +++ test/ScopInfo/multidim_fortran_2d_params.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -disable-output -polly-precise-fold-accesses \ +; RUN: -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze \ ; RUN: -polly-precise-fold-accesses \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s Index: test/ScopInfo/multidim_fortran_2d_with_modref_call.ll =================================================================== --- test/ScopInfo/multidim_fortran_2d_with_modref_call.ll +++ test/ScopInfo/multidim_fortran_2d_with_modref_call.ll @@ -1,9 +1,20 @@ -; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze -polly-allow-modref-calls \ -; RUN: -polly-invariant-load-hoisting=true \ -; RUN: < %s | FileCheck %s -; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -polly-allow-nonaffine -analyze \ -; RUN: -polly-invariant-load-hoisting=true \ -; RUN: -polly-allow-modref-calls < %s | FileCheck %s --check-prefix=NONAFFINE +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: -polly-allow-modref-calls -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s +; +; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze \ +; RUN: -polly-allow-modref-calls -polly-invariant-load-hoisting=true \ +; RUN: < %s | FileCheck %s +; +; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-allow-nonaffine \ +; RUN: -disable-output -polly-invariant-load-hoisting=true \ +; RUN: -polly-allow-modref-calls "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s --check-prefix=NONAFFINE +; +; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops \ +; RUN: -polly-allow-nonaffine -analyze -polly-invariant-load-hoisting=true \ +; RUN: -polly-allow-modref-calls < %s | FileCheck %s --check-prefix=NONAFFINE ; TODO: We should delinearize the accesses despite the use in a call to a ; readonly function. For now we verify we do not delinearize them though. Index: test/ScopInfo/multidim_fortran_srem.ll =================================================================== --- test/ScopInfo/multidim_fortran_srem.ll +++ test/ScopInfo/multidim_fortran_srem.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze < %s | FileCheck %s target datalayout = "e-p:64:64:64-S128-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f16:16:16-f32:32:32-f64:64:64-f128:128:128-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/ScopInfo/multidim_gep_pointercast.ll =================================================================== --- test/ScopInfo/multidim_gep_pointercast.ll +++ test/ScopInfo/multidim_gep_pointercast.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; The load access to A has a pointer-bitcast to another elements size before the Index: test/ScopInfo/multidim_gep_pointercast2.ll =================================================================== --- test/ScopInfo/multidim_gep_pointercast2.ll +++ test/ScopInfo/multidim_gep_pointercast2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; Verfy that we do not use the GetElementPtr information to delinearize A Index: test/ScopInfo/multidim_ivs_and_integer_offsets_3d.ll =================================================================== --- test/ScopInfo/multidim_ivs_and_integer_offsets_3d.ll +++ test/ScopInfo/multidim_ivs_and_integer_offsets_3d.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" Index: test/ScopInfo/multidim_ivs_and_parameteric_offsets_3d.ll =================================================================== --- test/ScopInfo/multidim_ivs_and_parameteric_offsets_3d.ll +++ test/ScopInfo/multidim_ivs_and_parameteric_offsets_3d.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output < %s -polly-precise-fold-accesses \ +; RUN: "-passes=print" 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s \ ; RUN: -polly-precise-fold-accesses | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" Index: test/ScopInfo/multidim_many_references.ll =================================================================== --- test/ScopInfo/multidim_many_references.ll +++ test/ScopInfo/multidim_many_references.ll @@ -1,4 +1,10 @@ +; RUN: opt %loadPolly -disable-output -polly-ignore-aliasing \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze -polly-ignore-aliasing < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output -polly-ignore-aliasing \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-function-scops -analyze -polly-ignore-aliasing < %s | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" Index: test/ScopInfo/multidim_nested_start_integer.ll =================================================================== --- test/ScopInfo/multidim_nested_start_integer.ll +++ test/ScopInfo/multidim_nested_start_integer.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-function-scops -analyze < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" Index: test/ScopInfo/multidim_nested_start_share_parameter.ll =================================================================== --- test/ScopInfo/multidim_nested_start_share_parameter.ll +++ test/ScopInfo/multidim_nested_start_share_parameter.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" Index: test/ScopInfo/multidim_only_ivs_2d.ll =================================================================== --- test/ScopInfo/multidim_only_ivs_2d.ll +++ test/ScopInfo/multidim_only_ivs_2d.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" Index: test/ScopInfo/multidim_only_ivs_3d.ll =================================================================== --- test/ScopInfo/multidim_only_ivs_3d.ll +++ test/ScopInfo/multidim_only_ivs_3d.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" Index: test/ScopInfo/multidim_only_ivs_3d_cast.ll =================================================================== --- test/ScopInfo/multidim_only_ivs_3d_cast.ll +++ test/ScopInfo/multidim_only_ivs_3d_cast.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; void foo(int n, int m, int o, double A[n][m][o]) { Index: test/ScopInfo/multidim_only_ivs_3d_reverse.ll =================================================================== --- test/ScopInfo/multidim_only_ivs_3d_reverse.ll +++ test/ScopInfo/multidim_only_ivs_3d_reverse.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" Index: test/ScopInfo/multidim_param_in_subscript-2.ll =================================================================== --- test/ScopInfo/multidim_param_in_subscript-2.ll +++ test/ScopInfo/multidim_param_in_subscript-2.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-precise-fold-accesses \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze \ ; RUN: -polly-precise-fold-accesses < %s | FileCheck %s ; Index: test/ScopInfo/multidim_param_in_subscript.ll =================================================================== --- test/ScopInfo/multidim_param_in_subscript.ll +++ test/ScopInfo/multidim_param_in_subscript.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; Index: test/ScopInfo/multidim_parameter_addrec_product.ll =================================================================== --- test/ScopInfo/multidim_parameter_addrec_product.ll +++ test/ScopInfo/multidim_parameter_addrec_product.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s ; Index: test/ScopInfo/multidim_single_and_multidim_array.ll =================================================================== --- test/ScopInfo/multidim_single_and_multidim_array.ll +++ test/ScopInfo/multidim_single_and_multidim_array.ll @@ -1,10 +1,32 @@ +; RUN: opt %loadPolly -polly-delinearize=false -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-scops -polly-delinearize=false -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -polly-delinearize=false -polly-allow-nonaffine \ +; RUN: -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=NONAFFINE ; RUN: opt %loadPolly -polly-scops -polly-delinearize=false -polly-allow-nonaffine -analyze < %s | FileCheck %s --check-prefix=NONAFFINE +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s --check-prefix=DELIN ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s --check-prefix=DELIN +; RUN: opt %loadPolly -polly-allow-nonaffine -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --check-prefix=DELIN ; RUN: opt %loadPolly -polly-scops -polly-allow-nonaffine -analyze < %s | FileCheck %s --check-prefix=DELIN +; RUN: opt %loadPolly -polly-delinearize=false -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-function-scops -polly-delinearize=false -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -polly-delinearize=false -polly-allow-nonaffine \ +; RUN: -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=NONAFFINE ; RUN: opt %loadPolly -polly-function-scops -polly-delinearize=false -polly-allow-nonaffine -analyze < %s | FileCheck %s --check-prefix=NONAFFINE +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s --check-prefix=DELIN ; RUN: opt %loadPolly -polly-function-scops -analyze < %s | FileCheck %s --check-prefix=DELIN +; RUN: opt %loadPolly -polly-allow-nonaffine -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --check-prefix=DELIN ; RUN: opt %loadPolly -polly-function-scops -polly-allow-nonaffine -analyze < %s | FileCheck %s --check-prefix=DELIN target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" Index: test/ScopInfo/multidim_srem.ll =================================================================== --- test/ScopInfo/multidim_srem.ll +++ test/ScopInfo/multidim_srem.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output -S "-passes=print" \ +; RUN: < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -analyze -polly-scops -S < %s | FileCheck %s ; ; void foo(long n, float A[][n][n]) { Index: test/ScopInfo/multidim_with_bitcast.ll =================================================================== --- test/ScopInfo/multidim_with_bitcast.ll +++ test/ScopInfo/multidim_with_bitcast.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze < %s | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" Index: test/ScopInfo/multiple-binary-or-conditions.ll =================================================================== --- test/ScopInfo/multiple-binary-or-conditions.ll +++ test/ScopInfo/multiple-binary-or-conditions.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output -passes=polly-codegen < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-codegen -analyze < %s ; ; void or(float *A, long n, long m) { Index: test/ScopInfo/multiple-types-access-offset-not-dividable-by-element-size.ll =================================================================== --- test/ScopInfo/multiple-types-access-offset-not-dividable-by-element-size.ll +++ test/ScopInfo/multiple-types-access-offset-not-dividable-by-element-size.ll @@ -1,6 +1,13 @@ -; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -pass-remarks-analysis="polly-scops" \ -; RUN: -polly-allow-differing-element-types \ -; RUN: -analyze < %s 2>&1 | FileCheck %s +; RUN: opt %loadPolly -polly-stmt-granularity=bb \ +; RUN: -pass-remarks-analysis=polly-scops \ +; RUN: -polly-allow-differing-element-types -disable-output \ +; RUN: "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s +; +; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops \ +; RUN: -pass-remarks-analysis="polly-scops" \ +; RUN: -polly-allow-differing-element-types \ +; RUN: -analyze < %s 2>&1 | FileCheck %s ; ; // For the following accesses the offset expression from the base pointer ; // is not always a multiple of the type size. Index: test/ScopInfo/multiple-types-non-affine-2.ll =================================================================== --- test/ScopInfo/multiple-types-non-affine-2.ll +++ test/ScopInfo/multiple-types-non-affine-2.ll @@ -1,5 +1,19 @@ -; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-allow-differing-element-types -polly-scops -polly-allow-nonaffine -analyze < %s | FileCheck %s -; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-allow-differing-element-types -polly-codegen -polly-allow-nonaffine -analyze +; RUN: opt %loadPolly -polly-stmt-granularity=bb \ +; RUN: -polly-allow-differing-element-types -polly-allow-nonaffine \ +; RUN: -disable-output "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s +; +; RUN: opt %loadPolly -polly-stmt-granularity=bb \ +; RUN: -polly-allow-differing-element-types -polly-scops \ +; RUN: -polly-allow-nonaffine -analyze < %s | FileCheck %s +; +; RUN: opt %loadPolly -polly-stmt-granularity=bb \ +; RUN: -polly-allow-differing-element-types -polly-allow-nonaffine \ +; RUN: -disable-output -passes=polly-codegen -aa-pipeline=basic-aa 2>&1 +; +; RUN: opt %loadPolly -polly-stmt-granularity=bb \ +; RUN: -polly-allow-differing-element-types -polly-codegen \ +; RUN: -polly-allow-nonaffine -analyze ; ; // Check that accessing one array with different types works, ; // even though some accesses are non-affine. Index: test/ScopInfo/multiple-types-non-affine.ll =================================================================== --- test/ScopInfo/multiple-types-non-affine.ll +++ test/ScopInfo/multiple-types-non-affine.ll @@ -1,5 +1,19 @@ -; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-allow-differing-element-types -polly-scops -polly-allow-nonaffine -analyze < %s | FileCheck %s -; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-allow-differing-element-types -polly-codegen -polly-allow-nonaffine -analyze +; RUN: opt %loadPolly -polly-stmt-granularity=bb \ +; RUN: -polly-allow-differing-element-types -polly-allow-nonaffine \ +; RUN: -disable-output "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s +; +; RUN: opt %loadPolly -polly-stmt-granularity=bb \ +; RUN: -polly-allow-differing-element-types -polly-scops \ +; RUN: -polly-allow-nonaffine -analyze < %s | FileCheck %s +; +; RUN: opt %loadPolly -polly-stmt-granularity=bb \ +; RUN: -polly-allow-differing-element-types -polly-allow-nonaffine \ +; RUN: -disable-output -passes=polly-codegen -aa-pipeline=basic-aa 2>&1 +; +; RUN: opt %loadPolly -polly-stmt-granularity=bb \ +; RUN: -polly-allow-differing-element-types -polly-codegen \ +; RUN: -polly-allow-nonaffine -analyze ; ; // Check that accessing one array with different types works, ; // even though some accesses are non-affine. Index: test/ScopInfo/multiple-types-non-power-of-two-2.ll =================================================================== --- test/ScopInfo/multiple-types-non-power-of-two-2.ll +++ test/ScopInfo/multiple-types-non-power-of-two-2.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-allow-differing-element-types \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze \ ; RUN: -polly-allow-differing-element-types < %s | FileCheck %s ; Index: test/ScopInfo/multiple-types-non-power-of-two.ll =================================================================== --- test/ScopInfo/multiple-types-non-power-of-two.ll +++ test/ScopInfo/multiple-types-non-power-of-two.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-allow-differing-element-types \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze \ ; RUN: -polly-allow-differing-element-types < %s | FileCheck %s ; Index: test/ScopInfo/multiple-types-two-dimensional-2.ll =================================================================== --- test/ScopInfo/multiple-types-two-dimensional-2.ll +++ test/ScopInfo/multiple-types-two-dimensional-2.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -pass-remarks-analysis=polly-scops \ +; RUN: -polly-allow-differing-element-types -disable-output < %s 2>&1 \ +; RUN: "-passes=print" -aa-pipeline=basic-aa | FileCheck \ +; RUN: %s ; RUN: opt %loadPolly -polly-scops -pass-remarks-analysis="polly-scops" \ ; RUN: -polly-allow-differing-element-types \ ; RUN: -analyze < %s 2>&1 | FileCheck %s Index: test/ScopInfo/multiple-types-two-dimensional.ll =================================================================== --- test/ScopInfo/multiple-types-two-dimensional.ll +++ test/ScopInfo/multiple-types-two-dimensional.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -pass-remarks-analysis=polly-scops \ +; RUN: -polly-allow-differing-element-types -disable-output < %s 2>&1 \ +; RUN: "-passes=print" -aa-pipeline=basic-aa | FileCheck \ +; RUN: %s ; RUN: opt %loadPolly -polly-scops -pass-remarks-analysis="polly-scops" \ ; RUN: -polly-allow-differing-element-types \ ; RUN: -analyze < %s 2>&1 | FileCheck %s Index: test/ScopInfo/multiple-types.ll =================================================================== --- test/ScopInfo/multiple-types.ll +++ test/ScopInfo/multiple-types.ll @@ -1,3 +1,8 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: -polly-allow-differing-element-types \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze \ ; RUN: -polly-allow-differing-element-types < %s | FileCheck %s ; Index: test/ScopInfo/multiple_exiting_blocks.ll =================================================================== --- test/ScopInfo/multiple_exiting_blocks.ll +++ test/ScopInfo/multiple_exiting_blocks.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: Domain := Index: test/ScopInfo/multiple_exiting_blocks_two_loop.ll =================================================================== --- test/ScopInfo/multiple_exiting_blocks_two_loop.ll +++ test/ScopInfo/multiple_exiting_blocks_two_loop.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; void foo(long n, float A[100]) { Index: test/ScopInfo/multiple_latch_blocks.ll =================================================================== --- test/ScopInfo/multiple_latch_blocks.ll +++ test/ScopInfo/multiple_latch_blocks.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -analyze -polly-scops < %s | FileCheck %s ; ; CHECK: Domain := Index: test/ScopInfo/nested-loops.ll =================================================================== --- test/ScopInfo/nested-loops.ll +++ test/ScopInfo/nested-loops.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128" Index: test/ScopInfo/no-scalar-deps-in-non-affine-subregion.ll =================================================================== --- test/ScopInfo/no-scalar-deps-in-non-affine-subregion.ll +++ test/ScopInfo/no-scalar-deps-in-non-affine-subregion.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops \ ; RUN: -analyze < %s | FileCheck %s ; Index: test/ScopInfo/non-affine-region-phi.ll =================================================================== --- test/ScopInfo/non-affine-region-phi.ll +++ test/ScopInfo/non-affine-region-phi.ll @@ -1,4 +1,7 @@ ; RUN: opt %loadPolly -polly-allow-nonaffine -S < %s | FileCheck %s --check-prefix=CODE +; RUN: opt %loadPolly -polly-allow-nonaffine -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-allow-nonaffine -polly-scops -analyze < %s | FileCheck %s ; ; Verify there is a phi in the non-affine region but it is not represented in Index: test/ScopInfo/non-affine-region-with-loop-2.ll =================================================================== --- test/ScopInfo/non-affine-region-with-loop-2.ll +++ test/ScopInfo/non-affine-region-with-loop-2.ll @@ -1,4 +1,12 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-allow-nonaffine-loops \ +; RUN: -disable-output "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-allow-nonaffine-loops -polly-scops -analyze < %s | FileCheck %s +; +; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-allow-nonaffine-loops \ +; RUN: -disable-output -passes=polly-codegen -aa-pipeline=basic-aa 2>&1 +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-allow-nonaffine-loops -polly-codegen -analyze ; ; CHECK: Stmt_loop3 Index: test/ScopInfo/non-affine-region-with-loop.ll =================================================================== --- test/ScopInfo/non-affine-region-with-loop.ll +++ test/ScopInfo/non-affine-region-with-loop.ll @@ -1,4 +1,9 @@ +; RUN: opt %loadPolly -polly-allow-nonaffine-loops -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-allow-nonaffine-loops -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -polly-allow-nonaffine-loops -disable-output \ +; RUN: -passes=polly-codegen 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-allow-nonaffine-loops -polly-codegen -analyze ; ; CHECK: Domain := Index: test/ScopInfo/non-precise-inv-load-1.ll =================================================================== --- test/ScopInfo/non-precise-inv-load-1.ll +++ test/ScopInfo/non-precise-inv-load-1.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s ; ; Verify we do hoist the invariant access to I with a execution context Index: test/ScopInfo/non-precise-inv-load-2.ll =================================================================== --- test/ScopInfo/non-precise-inv-load-2.ll +++ test/ScopInfo/non-precise-inv-load-2.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s ; ; Index: test/ScopInfo/non-precise-inv-load-3.ll =================================================================== --- test/ScopInfo/non-precise-inv-load-3.ll +++ test/ScopInfo/non-precise-inv-load-3.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s ; ; CHECK: Invariant Accesses: { Index: test/ScopInfo/non-precise-inv-load-4.ll =================================================================== --- test/ScopInfo/non-precise-inv-load-4.ll +++ test/ScopInfo/non-precise-inv-load-4.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s ; ; Verify we hoist I[0] without execution context even though it Index: test/ScopInfo/non-precise-inv-load-5.ll =================================================================== --- test/ScopInfo/non-precise-inv-load-5.ll +++ test/ScopInfo/non-precise-inv-load-5.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s ; ; Verify we do not hoist I[c] without execution context because it Index: test/ScopInfo/non-precise-inv-load-6.ll =================================================================== --- test/ScopInfo/non-precise-inv-load-6.ll +++ test/ScopInfo/non-precise-inv-load-6.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s ; ; Check that we model the execution context correctly. Index: test/ScopInfo/non-pure-function-call.ll =================================================================== --- test/ScopInfo/non-pure-function-call.ll +++ test/ScopInfo/non-pure-function-call.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: Assumed Context: Index: test/ScopInfo/non-pure-function-calls-causes-dead-blocks.ll =================================================================== --- test/ScopInfo/non-pure-function-calls-causes-dead-blocks.ll +++ test/ScopInfo/non-pure-function-calls-causes-dead-blocks.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; Error blocks are skipped during SCoP detection. We skip them during Index: test/ScopInfo/non-pure-function-calls.ll =================================================================== --- test/ScopInfo/non-pure-function-calls.ll +++ test/ScopInfo/non-pure-function-calls.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; Allow the user to define function names that are treated as Index: test/ScopInfo/non_affine_access.ll =================================================================== --- test/ScopInfo/non_affine_access.ll +++ test/ScopInfo/non_affine_access.ll @@ -1,6 +1,16 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -polly-allow-nonaffine -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s -check-prefix=NONAFFINE ; RUN: opt %loadPolly -polly-scops -polly-allow-nonaffine -analyze < %s | FileCheck %s -check-prefix=NONAFFINE +; RUN: opt %loadPolly -polly-allow-nonaffine -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s -check-prefix=NONAFFINE ; RUN: opt %loadPolly -polly-scops -polly-allow-nonaffine -analyze < %s | FileCheck %s -check-prefix=NONAFFINE target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" Index: test/ScopInfo/non_affine_region_1.ll =================================================================== --- test/ScopInfo/non_affine_region_1.ll +++ test/ScopInfo/non_affine_region_1.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-allow-nonaffine -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-allow-nonaffine -polly-scops -analyze < %s | FileCheck %s ; ; Verify only the incoming scalar x is modeled as a read in the non-affine Index: test/ScopInfo/non_affine_region_2.ll =================================================================== --- test/ScopInfo/non_affine_region_2.ll +++ test/ScopInfo/non_affine_region_2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; Verify the scalar x defined in a non-affine subregion is written as it Index: test/ScopInfo/non_affine_region_3.ll =================================================================== --- test/ScopInfo/non_affine_region_3.ll +++ test/ScopInfo/non_affine_region_3.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-function-scops -analyze < %s | FileCheck %s ; ; Verify the scalar x defined in a non-affine subregion is written as it Index: test/ScopInfo/non_affine_region_4.ll =================================================================== --- test/ScopInfo/non_affine_region_4.ll +++ test/ScopInfo/non_affine_region_4.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; Verify that both scalars (x and y) are properly written in the non-affine Index: test/ScopInfo/nonaffine-buildMemoryAccess.ll =================================================================== --- test/ScopInfo/nonaffine-buildMemoryAccess.ll +++ test/ScopInfo/nonaffine-buildMemoryAccess.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-allow-nonaffine-loops -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-allow-nonaffine-loops -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: Domain := Index: test/ScopInfo/not-a-reduction.ll =================================================================== --- test/ScopInfo/not-a-reduction.ll +++ test/ScopInfo/not-a-reduction.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output < %s 2>&1 \ +; RUN: "-passes=print" -aa-pipeline=basic-aa | not \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s 2>&1 | not FileCheck %s ;#define TYPE float Index: test/ScopInfo/opaque-struct.ll =================================================================== --- test/ScopInfo/opaque-struct.ll +++ test/ScopInfo/opaque-struct.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=require" <\ +; RUN: %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-scops -disable-output < %s ; ; Check that we do not crash with unsized (opaque) types. Index: test/ScopInfo/out-of-scop-use-in-region-entry-phi-node-nonaffine-subregion.ll =================================================================== --- test/ScopInfo/out-of-scop-use-in-region-entry-phi-node-nonaffine-subregion.ll +++ test/ScopInfo/out-of-scop-use-in-region-entry-phi-node-nonaffine-subregion.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -S -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa \ +; RUN: | FileCheck %s ; RUN: opt %loadPolly -polly-codegen -S < %s | FileCheck %s ; ; Check whether %newval is identified as escaping value, even though it is used Index: test/ScopInfo/out-of-scop-use-in-region-entry-phi-node.ll =================================================================== --- test/ScopInfo/out-of-scop-use-in-region-entry-phi-node.ll +++ test/ScopInfo/out-of-scop-use-in-region-entry-phi-node.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze < %s | FileCheck %s ; CHECK: MustWriteAccess := [Reduction Type: NONE] [Scalar: 1] Index: test/ScopInfo/parameter-constant-division.ll =================================================================== --- test/ScopInfo/parameter-constant-division.ll +++ test/ScopInfo/parameter-constant-division.ll @@ -1,6 +1,11 @@ -; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops \ -; RUN: -polly-invariant-load-hoisting=true \ -; RUN: -analyze -S < %s | FileCheck %s +; RUN: opt %loadPolly -polly-stmt-granularity=bb \ +; RUN: -polly-invariant-load-hoisting=true -disable-output -S \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s +; +; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops \ +; RUN: -polly-invariant-load-hoisting=true \ +; RUN: -analyze -S < %s | FileCheck %s ; ; CHECK: Invariant Accesses: { ; CHECK-NEXT: ReadAccess := [Reduction Type: NONE] [Scalar: 0] Index: test/ScopInfo/parameter_in_dead_statement.ll =================================================================== --- test/ScopInfo/parameter_in_dead_statement.ll +++ test/ScopInfo/parameter_in_dead_statement.ll @@ -1,5 +1,11 @@ +; RUN: opt %loadPolly -disable-output -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s +; RUN: opt %loadPolly -S -polly-invariant-load-hoisting=true \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s \ +; RUN: --check-prefix=IR ; RUN: opt %loadPolly -polly-codegen -S \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s --check-prefix=IR ; Index: test/ScopInfo/parameter_product.ll =================================================================== --- test/ScopInfo/parameter_product.ll +++ test/ScopInfo/parameter_product.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output -S "-passes=print" \ +; RUN: < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze -S < %s | FileCheck %s ; ; int n, m; Index: test/ScopInfo/parameter_with_constant_factor_in_add.ll =================================================================== --- test/ScopInfo/parameter_with_constant_factor_in_add.ll +++ test/ScopInfo/parameter_with_constant_factor_in_add.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; Check that the access function of the store is simple and concise Index: test/ScopInfo/partially_invariant_load_1.ll =================================================================== --- test/ScopInfo/partially_invariant_load_1.ll +++ test/ScopInfo/partially_invariant_load_1.ll @@ -1,4 +1,10 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -S \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s \ +; RUN: --check-prefix=IR ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -S < %s | FileCheck %s --check-prefix=IR ; ; CHECK: Invariant Accesses: { Index: test/ScopInfo/partially_invariant_load_2.ll =================================================================== --- test/ScopInfo/partially_invariant_load_2.ll +++ test/ScopInfo/partially_invariant_load_2.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-invariant-load-hoisting=true -analyze < %s | FileCheck %s ; ; Check that we do not try to preload *I and assume p != 42. Index: test/ScopInfo/phi-in-non-affine-region.ll =================================================================== --- test/ScopInfo/phi-in-non-affine-region.ll +++ test/ScopInfo/phi-in-non-affine-region.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -analyze -polly-scops < %s | FileCheck %s ; Verify that 'tmp' is stored in bb1 and read by bb3, as it is needed as Index: test/ScopInfo/phi_condition_modeling_1.ll =================================================================== --- test/ScopInfo/phi_condition_modeling_1.ll +++ test/ScopInfo/phi_condition_modeling_1.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -analyze -polly-scops < %s | FileCheck %s ; ; void f(int *A, int c, int N) { Index: test/ScopInfo/phi_condition_modeling_2.ll =================================================================== --- test/ScopInfo/phi_condition_modeling_2.ll +++ test/ScopInfo/phi_condition_modeling_2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -analyze -polly-scops < %s | FileCheck %s ; ; void f(int *A, int c, int N) { Index: test/ScopInfo/phi_conditional_simple_1.ll =================================================================== --- test/ScopInfo/phi_conditional_simple_1.ll +++ test/ScopInfo/phi_conditional_simple_1.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -analyze -polly-scops < %s | FileCheck %s ; ; void jd(int *A, int c) { Index: test/ScopInfo/phi_loop_carried_float.ll =================================================================== --- test/ScopInfo/phi_loop_carried_float.ll +++ test/ScopInfo/phi_loop_carried_float.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; float f(float *A, int N) { Index: test/ScopInfo/phi_scalar_simple_1.ll =================================================================== --- test/ScopInfo/phi_scalar_simple_1.ll +++ test/ScopInfo/phi_scalar_simple_1.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; The assumed context should be empty since the flags on the IV Index: test/ScopInfo/phi_scalar_simple_2.ll =================================================================== --- test/ScopInfo/phi_scalar_simple_2.ll +++ test/ScopInfo/phi_scalar_simple_2.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze < %s | FileCheck %s ; ; int jd(int *restrict A, int x, int N, int c) { Index: test/ScopInfo/phi_with_invoke_edge.ll =================================================================== --- test/ScopInfo/phi_with_invoke_edge.ll +++ test/ScopInfo/phi_with_invoke_edge.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-detect -analyze < %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/ScopInfo/pointer-comparison-no-nsw.ll =================================================================== --- test/ScopInfo/pointer-comparison-no-nsw.ll +++ test/ScopInfo/pointer-comparison-no-nsw.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; void f(int *A, int *B) { Index: test/ScopInfo/pointer-comparison.ll =================================================================== --- test/ScopInfo/pointer-comparison.ll +++ test/ScopInfo/pointer-comparison.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; TODO: FIXME: Investigate why we need a InvalidContext here. Index: test/ScopInfo/pointer-type-expressions.ll =================================================================== --- test/ScopInfo/pointer-type-expressions.ll +++ test/ScopInfo/pointer-type-expressions.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; void f(int a[], int N, float *P) { Index: test/ScopInfo/pointer-used-as-base-pointer-and-scalar-read.ll =================================================================== --- test/ScopInfo/pointer-used-as-base-pointer-and-scalar-read.ll +++ test/ScopInfo/pointer-used-as-base-pointer-and-scalar-read.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze < %s | FileCheck %s ; In this test case we pass a pointer %A into a PHI node and also use this Index: test/ScopInfo/polly-timeout-parameter-bounds.ll =================================================================== --- test/ScopInfo/polly-timeout-parameter-bounds.ll +++ test/ScopInfo/polly-timeout-parameter-bounds.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze < %s | FileCheck %s ; CHECK: Statements { Index: test/ScopInfo/process_added_dimensions.ll =================================================================== --- test/ScopInfo/process_added_dimensions.ll +++ test/ScopInfo/process_added_dimensions.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze < %s | FileCheck %s ; CHECK: Context: Index: test/ScopInfo/ranged_parameter.ll =================================================================== --- test/ScopInfo/ranged_parameter.ll +++ test/ScopInfo/ranged_parameter.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; Check that the contstraints on the paramater derived from the Index: test/ScopInfo/ranged_parameter_2.ll =================================================================== --- test/ScopInfo/ranged_parameter_2.ll +++ test/ScopInfo/ranged_parameter_2.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -disable-output -polly-allow-nonaffine \ +; RUN: -polly-invariant-load-hoisting=true < %s -debug 2>&1 \ +; RUN: "-passes=print" -aa-pipeline=basic-aa | FileCheck \ +; RUN: %s ; RUN: opt %loadPolly -polly-scops -analyze -polly-allow-nonaffine -polly-invariant-load-hoisting=true < %s \ ; RUN: -debug 2>&1 | FileCheck %s Index: test/ScopInfo/ranged_parameter_wrap.ll =================================================================== --- test/ScopInfo/ranged_parameter_wrap.ll +++ test/ScopInfo/ranged_parameter_wrap.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; Check that the constraints on the parameter derived from the Index: test/ScopInfo/ranged_parameter_wrap_2.ll =================================================================== --- test/ScopInfo/ranged_parameter_wrap_2.ll +++ test/ScopInfo/ranged_parameter_wrap_2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; Check that the context is built fast and does not explode due to us Index: test/ScopInfo/read-only-scalar-used-in-phi-2.ll =================================================================== --- test/ScopInfo/read-only-scalar-used-in-phi-2.ll +++ test/ScopInfo/read-only-scalar-used-in-phi-2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze \ ; RUN: < %s | FileCheck %s ; Index: test/ScopInfo/read-only-scalar-used-in-phi.ll =================================================================== --- test/ScopInfo/read-only-scalar-used-in-phi.ll +++ test/ScopInfo/read-only-scalar-used-in-phi.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -analyze -polly-scops \ ; RUN: < %s | FileCheck %s ; Index: test/ScopInfo/read-only-scalars.ll =================================================================== --- test/ScopInfo/read-only-scalars.ll +++ test/ScopInfo/read-only-scalars.ll @@ -1,5 +1,16 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb \ +; RUN: -polly-analyze-read-only-scalars=false -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-analyze-read-only-scalars=false -polly-scops \ ; RUN: -analyze < %s | FileCheck %s +; +; RUN: opt %loadPolly -polly-stmt-granularity=bb \ +; RUN: -polly-analyze-read-only-scalars=true -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s -check-prefix=SCALARS +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-analyze-read-only-scalars=true -polly-scops \ ; RUN: -analyze < %s | FileCheck %s \ ; RUN: -check-prefix=SCALARS Index: test/ScopInfo/read-only-statements.ll =================================================================== --- test/ScopInfo/read-only-statements.ll +++ test/ScopInfo/read-only-statements.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; Check we remove read only statements. Index: test/ScopInfo/reduction_alternating_base.ll =================================================================== --- test/ScopInfo/reduction_alternating_base.ll +++ test/ScopInfo/reduction_alternating_base.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; Index: test/ScopInfo/reduction_chain_partially_outside_the_scop.ll =================================================================== --- test/ScopInfo/reduction_chain_partially_outside_the_scop.ll +++ test/ScopInfo/reduction_chain_partially_outside_the_scop.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: Reduction Type: NONE Index: test/ScopInfo/reduction_disabled_multiplicative.ll =================================================================== --- test/ScopInfo/reduction_disabled_multiplicative.ll +++ test/ScopInfo/reduction_disabled_multiplicative.ll @@ -1,3 +1,8 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: -polly-disable-multiplicative-reductions \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s +; ; RUN: opt -basicaa %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze -polly-disable-multiplicative-reductions < %s | FileCheck %s ; ; CHECK: ReadAccess := [Reduction Type: + Index: test/ScopInfo/reduction_escaping_intermediate.ll =================================================================== --- test/ScopInfo/reduction_escaping_intermediate.ll +++ test/ScopInfo/reduction_escaping_intermediate.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-scops -analyze < %s | FileCheck %s ; ; void f(int N, int * restrict sums, int * restrict escape) { Index: test/ScopInfo/reduction_escaping_intermediate_2.ll =================================================================== --- test/ScopInfo/reduction_escaping_intermediate_2.ll +++ test/ScopInfo/reduction_escaping_intermediate_2.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -basicaa -polly-stmt-granularity=bb -polly-scops -analyze < %s | FileCheck %s ; ; void f(int N, int * restrict sums, int * restrict escape) { Index: test/ScopInfo/reduction_invalid_different_operators.ll =================================================================== --- test/ScopInfo/reduction_invalid_different_operators.ll +++ test/ScopInfo/reduction_invalid_different_operators.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s --allow-empty ; RUN: opt %loadPolly -basicaa -polly-scops -analyze < %s | FileCheck %s ; ; int f() { Index: test/ScopInfo/reduction_invalid_overlapping_accesses.ll =================================================================== --- test/ScopInfo/reduction_invalid_overlapping_accesses.ll +++ test/ScopInfo/reduction_invalid_overlapping_accesses.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze < %s | FileCheck %s ; ; void f(int *sums) { Index: test/ScopInfo/reduction_multiple_loops_array_sum.ll =================================================================== --- test/ScopInfo/reduction_multiple_loops_array_sum.ll +++ test/ScopInfo/reduction_multiple_loops_array_sum.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s ; RUN: opt -basicaa %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: Stmt_for_body Index: test/ScopInfo/reduction_multiple_loops_array_sum_1.ll =================================================================== --- test/ScopInfo/reduction_multiple_loops_array_sum_1.ll +++ test/ScopInfo/reduction_multiple_loops_array_sum_1.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s ; RUN: opt -basicaa %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: Stmt_for_body Index: test/ScopInfo/reduction_multiple_simple_binary.ll =================================================================== --- test/ScopInfo/reduction_multiple_simple_binary.ll +++ test/ScopInfo/reduction_multiple_simple_binary.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb -disable-output \ +; RUN: "-passes=print" -aa-pipeline=basic-aa \ +; RUN: < %s 2>&1 | FileCheck %s +; ; RUN: opt -basicaa %loadPolly -polly-stmt-granularity=bb -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: ReadAccess := [Reduction Type: NONE Index: test/ScopInfo/reduction_non_overlapping_chains.ll =================================================================== --- test/ScopInfo/reduction_non_overlapping_chains.ll +++ test/ScopInfo/reduction_non_overlapping_chains.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: Reduction Type: + Index: test/ScopInfo/reduction_only_reduction_like_access.ll =================================================================== --- test/ScopInfo/reduction_only_reduction_like_access.ll +++ test/ScopInfo/reduction_only_reduction_like_access.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: Reduction Type: + Index: test/ScopInfo/reduction_simple_fp.ll =================================================================== --- test/ScopInfo/reduction_simple_fp.ll +++ test/ScopInfo/reduction_simple_fp.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: Function: f_no_fast_math Index: test/ScopInfo/reduction_simple_w_constant.ll =================================================================== --- test/ScopInfo/reduction_simple_w_constant.ll +++ test/ScopInfo/reduction_simple_w_constant.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: Reduction Type: + Index: test/ScopInfo/reduction_simple_w_iv.ll =================================================================== --- test/ScopInfo/reduction_simple_w_iv.ll +++ test/ScopInfo/reduction_simple_w_iv.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: Reduction Type: + Index: test/ScopInfo/reduction_two_identical_reads.ll =================================================================== --- test/ScopInfo/reduction_two_identical_reads.ll +++ test/ScopInfo/reduction_two_identical_reads.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-function-scops -analyze < %s | FileCheck %s ; ; CHECK: Reduction Type: NONE Index: test/ScopInfo/redundant_parameter_constraint.ll =================================================================== --- test/ScopInfo/redundant_parameter_constraint.ll +++ test/ScopInfo/redundant_parameter_constraint.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; The constraint that r2 has to be bigger than r1 is implicitly containted in Index: test/ScopInfo/remarks.ll =================================================================== --- test/ScopInfo/remarks.ll +++ test/ScopInfo/remarks.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -pass-remarks-analysis=polly-scops \ +; RUN: -polly-invariant-load-hoisting=true -disable-output < %s 2>&1 \ +; RUN: "-passes=require" -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -pass-remarks-analysis="polly-scops" -polly-scops \ ; RUN: -polly-invariant-load-hoisting=true -disable-output < %s 2>&1 | FileCheck %s ; Index: test/ScopInfo/required-invariant-loop-bounds.ll =================================================================== --- test/ScopInfo/required-invariant-loop-bounds.ll +++ test/ScopInfo/required-invariant-loop-bounds.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s ; Index: test/ScopInfo/restriction_in_dead_block.ll =================================================================== --- test/ScopInfo/restriction_in_dead_block.ll +++ test/ScopInfo/restriction_in_dead_block.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; Verify we do not generate an empty invalid context only because the wrap Index: test/ScopInfo/run-time-check-many-array-disjuncts.ll =================================================================== --- test/ScopInfo/run-time-check-many-array-disjuncts.ll +++ test/ScopInfo/run-time-check-many-array-disjuncts.ll @@ -1,5 +1,9 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s -check-prefix=DETECT ; RUN: opt %loadPolly -polly-detect -analyze < %s \ ; RUN: | FileCheck %s -check-prefix=DETECT +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; DETECT: Valid Region for Scop: bb124 => bb176 Index: test/ScopInfo/run-time-check-many-parameters.ll =================================================================== --- test/ScopInfo/run-time-check-many-parameters.ll +++ test/ScopInfo/run-time-check-many-parameters.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; A valid Scop would print the list of it's statements, we check that we do not Index: test/ScopInfo/run-time-check-read-only-arrays.ll =================================================================== --- test/ScopInfo/run-time-check-read-only-arrays.ll +++ test/ScopInfo/run-time-check-read-only-arrays.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; void foo(float *A, float *B, float *C, long N) { Index: test/ScopInfo/same-base-address-scalar-and-array.ll =================================================================== --- test/ScopInfo/same-base-address-scalar-and-array.ll +++ test/ScopInfo/same-base-address-scalar-and-array.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; Verify we introduce two ScopArrayInfo objects (or virtual arrays) for the %out variable Index: test/ScopInfo/scalar.ll =================================================================== --- test/ScopInfo/scalar.ll +++ test/ScopInfo/scalar.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128" Index: test/ScopInfo/scalar_dependence_cond_br.ll =================================================================== --- test/ScopInfo/scalar_dependence_cond_br.ll +++ test/ScopInfo/scalar_dependence_cond_br.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; void f(int *A, int c, int d) { Index: test/ScopInfo/scalar_to_array.ll =================================================================== --- test/ScopInfo/scalar_to_array.ll +++ test/ScopInfo/scalar_to_array.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-function-scops -analyze < %s | FileCheck %s ; ModuleID = 'scalar_to_array.ll' Index: test/ScopInfo/scev-div-with-evaluatable-divisor.ll =================================================================== --- test/ScopInfo/scev-div-with-evaluatable-divisor.ll +++ test/ScopInfo/scev-div-with-evaluatable-divisor.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; Derived from test-suite/SingleSource/UnitTests/Vector/SSE/sse.stepfft.c Index: test/ScopInfo/scev-invalidated.ll =================================================================== --- test/ScopInfo/scev-invalidated.ll +++ test/ScopInfo/scev-invalidated.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly "-passes=require" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-scops < %s ; ; CHECK: Region: %if.then6---%return Index: test/ScopInfo/schedule-const-post-dominator-walk-2.ll =================================================================== --- test/ScopInfo/schedule-const-post-dominator-walk-2.ll +++ test/ScopInfo/schedule-const-post-dominator-walk-2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -analyze -polly-scops < %s | FileCheck %s ; CHECK: Stmt_loopA[i0] -> [0, 0, 0] Index: test/ScopInfo/schedule-const-post-dominator-walk.ll =================================================================== --- test/ScopInfo/schedule-const-post-dominator-walk.ll +++ test/ScopInfo/schedule-const-post-dominator-walk.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -analyze -polly-scops < %s | FileCheck %s ; CHECK: { Stmt_bb3[i0] -> [0, 0] }; Index: test/ScopInfo/schedule-constuction-endless-loop1.ll =================================================================== --- test/ScopInfo/schedule-constuction-endless-loop1.ll +++ test/ScopInfo/schedule-constuction-endless-loop1.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; Check that we do not build a SCoP and do not crash. Index: test/ScopInfo/schedule-constuction-endless-loop2.ll =================================================================== --- test/ScopInfo/schedule-constuction-endless-loop2.ll +++ test/ScopInfo/schedule-constuction-endless-loop2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; Check that we do not build a SCoP and do not crash. Index: test/ScopInfo/schedule-incorrectly-contructed-in-case-of-infinite-loop.ll =================================================================== --- test/ScopInfo/schedule-incorrectly-contructed-in-case-of-infinite-loop.ll +++ test/ScopInfo/schedule-incorrectly-contructed-in-case-of-infinite-loop.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -polly-process-unprofitable -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-process-unprofitable -analyze -polly-scops < %s ; ; This test contains a infinite loop (bb13) and crashed the domain generation Index: test/ScopInfo/scop-affine-parameter-ordering.ll =================================================================== --- test/ScopInfo/scop-affine-parameter-ordering.ll +++ test/ScopInfo/scop-affine-parameter-ordering.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly %s -disable-output "-passes=print" \ +; RUN: 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops %s -analyze | FileCheck %s target datalayout = "e-m:e-i64:64-i128:128-n8:16:32:64-S128" target triple = "aarch64--linux-android" Index: test/ScopInfo/sign_wrapped_set.ll =================================================================== --- test/ScopInfo/sign_wrapped_set.ll +++ test/ScopInfo/sign_wrapped_set.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-allow-nonaffine \ +; RUN: -polly-process-unprofitable "-passes=print" < %s \ +; RUN: 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze \ ; RUN: -polly-allow-nonaffine -polly-process-unprofitable < %s | FileCheck %s ; Index: test/ScopInfo/simple_loop_1.ll =================================================================== --- test/ScopInfo/simple_loop_1.ll +++ test/ScopInfo/simple_loop_1.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; void f(int a[], int N) { Index: test/ScopInfo/simple_loop_2.ll =================================================================== --- test/ScopInfo/simple_loop_2.ll +++ test/ScopInfo/simple_loop_2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; void f(int a[], int N) { Index: test/ScopInfo/simple_loop_unsigned.ll =================================================================== --- test/ScopInfo/simple_loop_unsigned.ll +++ test/ScopInfo/simple_loop_unsigned.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; void f(int a[], unsigned N) { Index: test/ScopInfo/simple_loop_unsigned_2.ll =================================================================== --- test/ScopInfo/simple_loop_unsigned_2.ll +++ test/ScopInfo/simple_loop_unsigned_2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; CHECK: Assumed Context: Index: test/ScopInfo/simple_loop_unsigned_3.ll =================================================================== --- test/ScopInfo/simple_loop_unsigned_3.ll +++ test/ScopInfo/simple_loop_unsigned_3.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; CHECK: Assumed Context: Index: test/ScopInfo/simple_nonaffine_loop_not.ll =================================================================== --- test/ScopInfo/simple_nonaffine_loop_not.ll +++ test/ScopInfo/simple_nonaffine_loop_not.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | not FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | not FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" Index: test/ScopInfo/smax.ll =================================================================== --- test/ScopInfo/smax.ll +++ test/ScopInfo/smax.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:64:128-a0:0:32-n32-S64" Index: test/ScopInfo/statistics.ll =================================================================== --- test/ScopInfo/statistics.ll +++ test/ScopInfo/statistics.ll @@ -1,6 +1,10 @@ +; RUN: opt %loadPolly -stats -disable-output < %s 2>&1 \ +; RUN: "-passes=print" -aa-pipeline=basic-aa | FileCheck \ +; RUN: %s ; RUN: opt %loadPolly -polly-scops -stats -analyze < %s 2>&1 | FileCheck %s ; REQUIRES: asserts +; CHECK-LABEL: Statistics Collected ; CHECK-DAG: 4 polly-scops - Maximal number of loops in scops ; CHECK-DAG: 10 polly-scops - Number of loops in scops ; CHECK-DAG: 1 polly-scops - Number of scops with maximal loop depth 4 Index: test/ScopInfo/stmt_split_no_after_split.ll =================================================================== --- test/ScopInfo/stmt_split_no_after_split.ll +++ test/ScopInfo/stmt_split_no_after_split.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-print-instructions \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze -polly-print-instructions < %s | FileCheck %s ; ; CHECK: Statements { Index: test/ScopInfo/switch-1.ll =================================================================== --- test/ScopInfo/switch-1.ll +++ test/ScopInfo/switch-1.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=AST ; RUN: opt %loadPolly -polly-ast -analyze < %s | FileCheck %s --check-prefix=AST ; ; void f(int *A, int N) { Index: test/ScopInfo/switch-2.ll =================================================================== --- test/ScopInfo/switch-2.ll +++ test/ScopInfo/switch-2.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=AST ; RUN: opt %loadPolly -polly-ast -analyze < %s | FileCheck %s --check-prefix=AST ; ; void f(int *A, int N) { Index: test/ScopInfo/switch-3.ll =================================================================== --- test/ScopInfo/switch-3.ll +++ test/ScopInfo/switch-3.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=AST ; RUN: opt %loadPolly -polly-ast -analyze < %s | FileCheck %s --check-prefix=AST ; ; void f(int *A, int N) { Index: test/ScopInfo/switch-4.ll =================================================================== --- test/ScopInfo/switch-4.ll +++ test/ScopInfo/switch-4.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=AST ; RUN: opt %loadPolly -polly-ast -analyze < %s | FileCheck %s --check-prefix=AST ; ; void f(int *A, int N) { Index: test/ScopInfo/switch-5.ll =================================================================== --- test/ScopInfo/switch-5.ll +++ test/ScopInfo/switch-5.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=AST ; RUN: opt %loadPolly -polly-ast -analyze < %s | FileCheck %s --check-prefix=AST ; ; void f(int *A, int *B, int N) { Index: test/ScopInfo/switch-6.ll =================================================================== --- test/ScopInfo/switch-6.ll +++ test/ScopInfo/switch-6.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=AST ; RUN: opt %loadPolly -polly-ast -analyze < %s | FileCheck %s --check-prefix=AST ; ; void f(int *A, int N) { Index: test/ScopInfo/switch-7.ll =================================================================== --- test/ScopInfo/switch-7.ll +++ test/ScopInfo/switch-7.ll @@ -1,5 +1,9 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output "-passes=print" < %s 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s --check-prefix=AST ; RUN: opt %loadPolly -polly-ast -analyze < %s | FileCheck %s --check-prefix=AST ; ; void f(int *A, int c, int N) { Index: test/ScopInfo/tempscop-printing.ll =================================================================== --- test/ScopInfo/tempscop-printing.ll +++ test/ScopInfo/tempscop-printing.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" -aa-pipeline=basic-aa < %s 2>&1 | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -basicaa -polly-scops -analyze \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s Index: test/ScopInfo/test-wrapping-in-condition.ll =================================================================== --- test/ScopInfo/test-wrapping-in-condition.ll +++ test/ScopInfo/test-wrapping-in-condition.ll @@ -1,4 +1,8 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-function-scops -analyze < %s | FileCheck %s ; ; CHECK: Invalid Context: Index: test/ScopInfo/truncate-1.ll =================================================================== --- test/ScopInfo/truncate-1.ll +++ test/ScopInfo/truncate-1.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; void f(char *A, short N) { Index: test/ScopInfo/truncate-2.ll =================================================================== --- test/ScopInfo/truncate-2.ll +++ test/ScopInfo/truncate-2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; void f(char *A, short N) { Index: test/ScopInfo/truncate-3.ll =================================================================== --- test/ScopInfo/truncate-3.ll +++ test/ScopInfo/truncate-3.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -pass-remarks-analysis=polly-scops -disable-output < %s \ +; RUN: 2>&1 "-passes=require" -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -pass-remarks-analysis="polly-scops" \ ; RUN: -disable-output < %s 2>&1 | FileCheck %s Index: test/ScopInfo/two-loops-one-infinite.ll =================================================================== --- test/ScopInfo/two-loops-one-infinite.ll +++ test/ScopInfo/two-loops-one-infinite.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; Verify we do not create a SCoP in the presence of infinite loops. Index: test/ScopInfo/two-loops-right-after-each-other.ll =================================================================== --- test/ScopInfo/two-loops-right-after-each-other.ll +++ test/ScopInfo/two-loops-right-after-each-other.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze \ ; RUN: < %s | FileCheck %s Index: test/ScopInfo/undef_in_cond.ll =================================================================== --- test/ScopInfo/undef_in_cond.ll +++ test/ScopInfo/undef_in_cond.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64" Index: test/ScopInfo/unnamed_nonaffine.ll =================================================================== --- test/ScopInfo/unnamed_nonaffine.ll +++ test/ScopInfo/unnamed_nonaffine.ll @@ -1,6 +1,12 @@ +; RUN: opt %loadPolly -polly-allow-nonaffine -disable-output < %s \ +; RUN: -polly-use-llvm-names=true "-passes=print" 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-allow-nonaffine -polly-scops -analyze < %s \ ; RUN: -polly-use-llvm-names=true | FileCheck %s ; +; RUN: opt %loadPolly -polly-allow-nonaffine -disable-output < %s \ +; RUN: -polly-use-llvm-names=false "-passes=print" 2>&1 \ +; RUN: -aa-pipeline=basic-aa | FileCheck %s -check-prefix=UNNAMED ; RUN: opt %loadPolly -polly-allow-nonaffine -polly-scops -analyze < %s \ ; RUN: -polly-use-llvm-names=false | FileCheck %s -check-prefix=UNNAMED ; Index: test/ScopInfo/unnamed_stmts.ll =================================================================== --- test/ScopInfo/unnamed_stmts.ll +++ test/ScopInfo/unnamed_stmts.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; This test case verifies that we generate numbered statement names in case Index: test/ScopInfo/unprofitable_scalar-accs.ll =================================================================== --- test/ScopInfo/unprofitable_scalar-accs.ll +++ test/ScopInfo/unprofitable_scalar-accs.ll @@ -1,4 +1,16 @@ +; RUN: opt %loadPolly -polly-stmt-granularity=bb \ +; RUN: -polly-process-unprofitable=false -polly-unprofitable-scalar-accs=false \ +; RUN: -disable-output "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | FileCheck %s +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-process-unprofitable=false -polly-unprofitable-scalar-accs=false -polly-scops -analyze < %s | FileCheck %s +; +; RUN: opt %loadPolly -polly-stmt-granularity=bb \ +; RUN: -polly-process-unprofitable=false -polly-unprofitable-scalar-accs=true \ +; RUN: -disable-output "-passes=print" \ +; RUN: -aa-pipeline=basic-aa < %s 2>&1 | \ +; RUN: FileCheck %s --check-prefix=HEURISTIC -allow-empty +; ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-process-unprofitable=false -polly-unprofitable-scalar-accs=true -polly-scops -analyze < %s | FileCheck %s --check-prefix=HEURISTIC ; Check the effect of -polly-unprofitable-scalar-accs Index: test/ScopInfo/unsigned-condition.ll =================================================================== --- test/ScopInfo/unsigned-condition.ll +++ test/ScopInfo/unsigned-condition.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; void f(int a[], int N, unsigned P) { Index: test/ScopInfo/unsigned-division-1.ll =================================================================== --- test/ScopInfo/unsigned-division-1.ll +++ test/ScopInfo/unsigned-division-1.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; void f(int *A, unsigned N) { Index: test/ScopInfo/unsigned-division-2.ll =================================================================== --- test/ScopInfo/unsigned-division-2.ll +++ test/ScopInfo/unsigned-division-2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; void f(int *A, unsigned N) { Index: test/ScopInfo/unsigned-division-3.ll =================================================================== --- test/ScopInfo/unsigned-division-3.ll +++ test/ScopInfo/unsigned-division-3.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; void f(int *A, unsigned char N) { Index: test/ScopInfo/unsigned-division-4.ll =================================================================== --- test/ScopInfo/unsigned-division-4.ll +++ test/ScopInfo/unsigned-division-4.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; void f(int *A, unsigned char N) { Index: test/ScopInfo/unsigned-division-5.ll =================================================================== --- test/ScopInfo/unsigned-division-5.ll +++ test/ScopInfo/unsigned-division-5.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s ; Index: test/ScopInfo/unsigned_wrap_uge.ll =================================================================== --- test/ScopInfo/unsigned_wrap_uge.ll +++ test/ScopInfo/unsigned_wrap_uge.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; Unsigned wrap-around check. Index: test/ScopInfo/unsigned_wrap_ugt.ll =================================================================== --- test/ScopInfo/unsigned_wrap_ugt.ll +++ test/ScopInfo/unsigned_wrap_ugt.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; Unsigned wrap-around check. Index: test/ScopInfo/unsigned_wrap_ule.ll =================================================================== --- test/ScopInfo/unsigned_wrap_ule.ll +++ test/ScopInfo/unsigned_wrap_ule.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; Unsigned wrap-around check. Index: test/ScopInfo/unsigned_wrap_ult.ll =================================================================== --- test/ScopInfo/unsigned_wrap_ult.ll +++ test/ScopInfo/unsigned_wrap_ult.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; Unsigned wrap-around check. Index: test/ScopInfo/user_context.ll =================================================================== --- test/ScopInfo/user_context.ll +++ test/ScopInfo/user_context.ll @@ -1,6 +1,17 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly "-polly-context=[N] -> {: N = 1024}" -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --check-prefix=CTX ; RUN: opt %loadPolly -polly-scops -polly-context='[N] -> {: N = 1024}' -analyze < %s | FileCheck %s --check-prefix=CTX +; RUN: opt %loadPolly "-polly-context=[N,M] -> {: 1 = 0}" -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-context='[N,M] -> {: 1 = 0}' -analyze < %s | FileCheck %s +; RUN: opt %loadPolly "-polly-context=[] -> {: 1 = 0}" -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -polly-context='[] -> {: 1 = 0}' -analyze < %s | FileCheck %s ; void f(int a[], int N) { Index: test/ScopInfo/user_provided_assumptions-in-bb-signed-conditional.ll =================================================================== --- test/ScopInfo/user_provided_assumptions-in-bb-signed-conditional.ll +++ test/ScopInfo/user_provided_assumptions-in-bb-signed-conditional.ll @@ -1,4 +1,9 @@ +; RUN: opt %loadPolly -pass-remarks-analysis=polly-scops -disable-output < %s \ +; RUN: 2>&1 "-passes=require" -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --check-prefix=REMARK ; RUN: opt %loadPolly -pass-remarks-analysis="polly-scops" -polly-scops -disable-output < %s 2>&1 | FileCheck %s --check-prefix=REMARK +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; REMARK: remark: :0:0: Use user assumption: [n, b] -> { : n <= 100 or (b = 0 and n >= 101) } Index: test/ScopInfo/user_provided_assumptions-in-bb-signed.ll =================================================================== --- test/ScopInfo/user_provided_assumptions-in-bb-signed.ll +++ test/ScopInfo/user_provided_assumptions-in-bb-signed.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: Context: Index: test/ScopInfo/user_provided_assumptions-in-bb-unsigned.ll =================================================================== --- test/ScopInfo/user_provided_assumptions-in-bb-unsigned.ll +++ test/ScopInfo/user_provided_assumptions-in-bb-unsigned.ll @@ -1,4 +1,9 @@ +; RUN: opt %loadPolly -pass-remarks-analysis=polly-scops -disable-output < %s \ +; RUN: 2>&1 "-passes=require" -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --check-prefix=REMARK ; RUN: opt %loadPolly -pass-remarks-analysis="polly-scops" -polly-scops -disable-output < %s 2>&1 | FileCheck %s --check-prefix=REMARK +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; REMARK: remark: :0:0: SCoP begins here. Index: test/ScopInfo/user_provided_assumptions.ll =================================================================== --- test/ScopInfo/user_provided_assumptions.ll +++ test/ScopInfo/user_provided_assumptions.ll @@ -1,4 +1,9 @@ +; RUN: opt %loadPolly -pass-remarks-analysis=polly-scops -disable-output < %s \ +; RUN: 2>&1 "-passes=require" -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -pass-remarks-analysis="polly-scops" -polly-scops -disable-output < %s 2>&1 | FileCheck %s +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s --check-prefix=SCOP ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s --check-prefix=SCOP ; ; CHECK: remark: :0:0: SCoP begins here. Index: test/ScopInfo/user_provided_assumptions_2.ll =================================================================== --- test/ScopInfo/user_provided_assumptions_2.ll +++ test/ScopInfo/user_provided_assumptions_2.ll @@ -1,4 +1,9 @@ +; RUN: opt %loadPolly -pass-remarks-analysis=polly-scops -disable-output < %s \ +; RUN: 2>&1 "-passes=require" -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -pass-remarks-analysis="polly-scops" -polly-scops -disable-output < %s 2>&1 | FileCheck %s +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s --check-prefix=SCOP ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s --check-prefix=SCOP ; ; CHECK: remark: :0:0: SCoP begins here. Index: test/ScopInfo/user_provided_assumptions_3.ll =================================================================== --- test/ScopInfo/user_provided_assumptions_3.ll +++ test/ScopInfo/user_provided_assumptions_3.ll @@ -1,4 +1,9 @@ +; RUN: opt %loadPolly -pass-remarks-analysis=polly-scops -disable-output < %s \ +; RUN: 2>&1 "-passes=require" -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -pass-remarks-analysis="polly-scops" -polly-scops -disable-output < %s 2>&1 | FileCheck %s +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s --check-prefix=SCOP ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s --check-prefix=SCOP ; ; CHECK: remark: :0:0: SCoP begins here. Index: test/ScopInfo/user_provided_non_dominating_assumptions.ll =================================================================== --- test/ScopInfo/user_provided_non_dominating_assumptions.ll +++ test/ScopInfo/user_provided_non_dominating_assumptions.ll @@ -1,3 +1,7 @@ +; RUN: opt %loadPolly -pass-remarks-analysis=polly-scops \ +; RUN: -polly-precise-inbounds -disable-output < %s 2>&1 \ +; RUN: "-passes=require" -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -pass-remarks-analysis="polly-scops" -polly-scops \ ; RUN: -polly-precise-inbounds -disable-output < %s 2>&1 | FileCheck %s ; @@ -18,8 +22,13 @@ ; +; RUN: opt %loadPolly -pass-remarks-analysis=polly-scops \ +; RUN: -polly-precise-inbounds -disable-output < %s 2>&1 \ +; RUN: "-pass-remarks-output=%t.yaml" "-passes=require" \ +; RUN: -aa-pipeline=basic-aa ; RUN: opt %loadPolly -pass-remarks-analysis="polly-scops" -polly-scops \ ; RUN: -polly-precise-inbounds -disable-output < %s 2>&1 -pass-remarks-output=%t.yaml +; RUN: cat "%t.yaml" | FileCheck -check-prefix=YAML %s ; RUN: cat %t.yaml | FileCheck -check-prefix=YAML %s ; YAML: --- !Analysis ; YAML: Pass: polly-scops Index: test/ScopInfo/variant_base_pointer.ll =================================================================== --- test/ScopInfo/variant_base_pointer.ll +++ test/ScopInfo/variant_base_pointer.ll @@ -1,4 +1,11 @@ +; RUN: opt %loadPolly -polly-ignore-aliasing \ +; RUN: -polly-invariant-load-hoisting=true -disable-output \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s --allow-empty ; RUN: opt %loadPolly -polly-ignore-aliasing -polly-invariant-load-hoisting=true -polly-scops -analyze < %s | FileCheck %s +; RUN: opt %loadPolly -polly-ignore-aliasing \ +; RUN: -polly-invariant-load-hoisting=true -disable-output \ +; RUN: -passes=polly-codegen < %s 2>&1 -aa-pipeline=basic-aa ; RUN: opt %loadPolly -polly-ignore-aliasing -polly-invariant-load-hoisting=true -polly-codegen -analyze < %s ; ; %tmp is added to the list of required hoists by -polly-scops and just Index: test/ScopInfo/variant_load_empty_domain.ll =================================================================== --- test/ScopInfo/variant_load_empty_domain.ll +++ test/ScopInfo/variant_load_empty_domain.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: Invariant Accesses: { Index: test/ScopInfo/wraping_signed_expr_0.ll =================================================================== --- test/ScopInfo/wraping_signed_expr_0.ll +++ test/ScopInfo/wraping_signed_expr_0.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; void f(int *A, char N, char p) { Index: test/ScopInfo/wraping_signed_expr_1.ll =================================================================== --- test/ScopInfo/wraping_signed_expr_1.ll +++ test/ScopInfo/wraping_signed_expr_1.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; void f(long *A, long N, long p) { Index: test/ScopInfo/wraping_signed_expr_2.ll =================================================================== --- test/ScopInfo/wraping_signed_expr_2.ll +++ test/ScopInfo/wraping_signed_expr_2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; void f(int *A, int N, int p) { Index: test/ScopInfo/wraping_signed_expr_3.ll =================================================================== --- test/ScopInfo/wraping_signed_expr_3.ll +++ test/ScopInfo/wraping_signed_expr_3.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; void f(int *A, int N, int p) { Index: test/ScopInfo/wraping_signed_expr_4.ll =================================================================== --- test/ScopInfo/wraping_signed_expr_4.ll +++ test/ScopInfo/wraping_signed_expr_4.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; void f(char *A, char N, char p) { Index: test/ScopInfo/wraping_signed_expr_5.ll =================================================================== --- test/ScopInfo/wraping_signed_expr_5.ll +++ test/ScopInfo/wraping_signed_expr_5.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; We should not generate runtime check for ((int)r1 + (int)r2) as it is known not Index: test/ScopInfo/wraping_signed_expr_6.ll =================================================================== --- test/ScopInfo/wraping_signed_expr_6.ll +++ test/ScopInfo/wraping_signed_expr_6.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: Invalid Context: Index: test/ScopInfo/wraping_signed_expr_7.ll =================================================================== --- test/ScopInfo/wraping_signed_expr_7.ll +++ test/ScopInfo/wraping_signed_expr_7.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: Invalid Context: Index: test/ScopInfo/wraping_signed_expr_slow_1.ll =================================================================== --- test/ScopInfo/wraping_signed_expr_slow_1.ll +++ test/ScopInfo/wraping_signed_expr_slow_1.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; This checks that the no-wraps checks will be computed fast as some example Index: test/ScopInfo/wraping_signed_expr_slow_2.ll =================================================================== --- test/ScopInfo/wraping_signed_expr_slow_2.ll +++ test/ScopInfo/wraping_signed_expr_slow_2.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; This checks that the no-wraps checks will be computed fast as some example Index: test/ScopInfo/zero_ext_of_truncate.ll =================================================================== --- test/ScopInfo/zero_ext_of_truncate.ll +++ test/ScopInfo/zero_ext_of_truncate.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s ; Index: test/ScopInfo/zero_ext_of_truncate_2.ll =================================================================== --- test/ScopInfo/zero_ext_of_truncate_2.ll +++ test/ScopInfo/zero_ext_of_truncate_2.ll @@ -1,3 +1,6 @@ +; RUN: opt %loadPolly -disable-output -polly-invariant-load-hoisting=true \ +; RUN: "-passes=print" < %s 2>&1 -aa-pipeline=basic-aa | \ +; RUN: FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze \ ; RUN: -polly-invariant-load-hoisting=true < %s | FileCheck %s ; Index: test/ScopInfo/zero_ext_space_mismatch.ll =================================================================== --- test/ScopInfo/zero_ext_space_mismatch.ll +++ test/ScopInfo/zero_ext_space_mismatch.ll @@ -1,3 +1,5 @@ +; RUN: opt %loadPolly -disable-output "-passes=print" < \ +; RUN: %s 2>&1 -aa-pipeline=basic-aa | FileCheck %s ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s ; ; CHECK: Assumed Context: