1 ; RUN: opt %loadNPMPolly -passes=polly-codegen -S < %s | FileCheck %s
3 ; Scalar write of bitcasted value. Instead of writing %b of type
4 ; %structty, the SCEV expression looks through the bitcast such that
5 ; SCEVExpander returns %add.ptr81.i of type i8* to be the new value
8 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
10 %structty = type { ptr, ptr, i32, [2 x i64] }
12 define void @bitmap_set_range() {
14 %a = ptrtoint ptr undef to i64
15 br label %cond.end32.i
18 br i1 false, label %cond.true67.i, label %cond.end73.i
21 br label %cond.end73.i
24 %add.ptr81.i = getelementptr inbounds i8, ptr null, i64 %a
25 br label %bitmap_element_allocate.exit
27 bitmap_element_allocate.exit:
28 %tobool43 = icmp eq ptr %add.ptr81.i, null
34 ; CHECK: polly.stmt.cond.end73.i:
35 ; CHECK-NEXT: %scevgep = getelementptr i8, ptr null, i64 %a
36 ; CHECK-NEXT: store ptr %scevgep, ptr %add.ptr81.i.s2a, align 8
37 ; CHECK-NEXT: br label %polly.exiting