1; RUN: opt %loadNPMPolly -passes=polly-codegen -S < %s | FileCheck %s 2; 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 6; of %b. 7; 8target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 9 10%structty = type { ptr, ptr, i32, [2 x i64] } 11 12define void @bitmap_set_range() { 13entry: 14 %a = ptrtoint ptr undef to i64 15 br label %cond.end32.i 16 17cond.end32.i: 18 br i1 false, label %cond.true67.i, label %cond.end73.i 19 20cond.true67.i: 21 br label %cond.end73.i 22 23cond.end73.i: 24 %add.ptr81.i = getelementptr inbounds i8, ptr null, i64 %a 25 br label %bitmap_element_allocate.exit 26 27bitmap_element_allocate.exit: 28 %tobool43 = icmp eq ptr %add.ptr81.i, null 29 ret void 30} 31 32 33 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 38