1 ; RUN: opt %loadPolly -polly-stmt-granularity=bb -polly-print-simplify -disable-output < %s | FileCheck %s -match-full-lines
2 ; RUN: opt %loadNPMPolly -polly-stmt-granularity=bb "-passes=scop(print<polly-simplify>)" -disable-output -aa-pipeline=basic-aa < %s | FileCheck %s -match-full-lines
4 ; Remove a dead instruction
5 ; (an instruction whose result is not used anywhere)
7 ; for (int j = 0; j < n; j += 1) {
8 ; double val = 21.0 + 21.0;
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 %val = fadd double 21.0, 21.0
23 store double 42.0, ptr %A
27 %j.inc = add nuw nsw i32 %j, 1
39 ; CHECK: Dead instructions removed: 1