1 ; RUN: opt %loadPolly %defaultOpts -polly-codegen -enable-polly-vector -dce -S %s | FileCheck %s
2 ; Obtained from C source as:
3 ; clang -S -emit-llvm -O0 pr31041.c
4 ; opt -correlated-propagation -mem2reg -instcombine -loop-simplify -indvars -instnamer pr31041.s > pr31041.ll
6 ; ModuleID = 'pr31041.s'
7 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"
8 target triple = "x86_64-unknown-linux-gnu"
10 define i32 @utrie_open_3_4() nounwind uwtable {
14 do.body: ; preds = %do.cond, %entry
15 %i.0 = phi i32 [ 0, %entry ], [ %tmp, %do.cond ]
16 %j.0 = add i32 %i.0, undef
17 %tmp = add nsw i32 %i.0, 1
18 store i32 %j.0, i32* undef, align 4
21 do.cond: ; preds = %do.body
22 %exitcond = icmp ne i32 %tmp, 5
23 br i1 %exitcond, label %do.body, label %do.end
25 do.end: ; preds = %do.cond