1 ; RUN: opt %loadNPMPolly -passes=polly-delicm -disable-output < %s
2 ; RUN: opt %loadNPMPolly '-passes=print<polly-delicm>' -disable-output < %s | FileCheck %s
3 ; RUN: opt %loadNPMPolly '-passes=scop(print<polly-delicm>)' -disable-output < %s | FileCheck %s
5 ; Simple test for the existence of the DeLICM pass.
7 ; // Simplest detected SCoP to run DeLICM on.
8 ; for (int j = 0; j < n; j += 1) {
12 define void @func(i32 %n, ptr noalias nonnull %A) {
17 %j = phi i32 [0, %entry], [%j.inc, %inc]
18 %j.cmp = icmp slt i32 %j, %n
19 br i1 %j.cmp, label %body, label %exit
22 store double 0.0, ptr %A
26 %j.inc = add nuw nsw i32 %j, 1
37 ; Verify that the DeLICM has a custom printScop() function.
38 ; CHECK: DeLICM result: