[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / polly / test / Simplify / notdead_region_innerphi.ll
bloba176a28af233b64278adc1322878160c494bfe9f
1 ; RUN: opt %loadPolly -polly-print-simplify -disable-output < %s | FileCheck %s -match-full-lines
2 ; RUN: opt %loadNPMPolly "-passes=scop(print<polly-simplify>)" -disable-output -aa-pipeline=basic-aa < %s | FileCheck %s -match-full-lines
4 ; Do not remove dependencies of a phi node within a region statement (%phi).
6 define void @func(i32 %n, ptr noalias nonnull %A, double %alpha) {
7 entry:
8   br label %for
10 for:
11   %j = phi i32 [0, %entry], [%j.inc, %inc]
12   %j.cmp = icmp slt i32 %j, %n
13   br i1 %j.cmp, label %body, label %exit
15     body:
16       %val = fadd double 21.0, 21.0
17       br label %region_entry
20     region_entry:
21       %region.cmp = fcmp ueq double %alpha, 0.0
22       br i1 %region.cmp, label %region_true, label %region_exit
24     region_true:
25       br i1 true, label %region_verytrue, label %region_mostlytrue
27     region_verytrue:
28       br label %region_mostlytrue
30     region_mostlytrue:
31       %phi = phi double [%val, %region_true], [0.0, %region_verytrue]
32       store double %phi, ptr %A
33       br label %region_exit
35     region_exit:
36       br label %inc
39 inc:
40   %j.inc = add nuw nsw i32 %j, 1
41   br label %for
43 exit:
44   br label %return
46 return:
47   ret void
51 ; CHECK: SCoP could not be simplified