38 lines · plain
1; RUN: opt %loadNPMPolly '-passes=polly<no-default-opts>' -S < %s | FileCheck %s2;3; Scalar write of bitcasted value. Instead of writing %b of type4; %structty, the SCEV expression looks through the bitcast such that5; SCEVExpander returns %add.ptr81.i of type i8* to be the new value6; 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 i6415 br label %cond.end32.i16 17cond.end32.i:18 br i1 false, label %cond.true67.i, label %cond.end73.i19 20cond.true67.i:21 br label %cond.end73.i22 23cond.end73.i:24 %add.ptr81.i = getelementptr inbounds i8, ptr null, i64 %a25 br label %bitmap_element_allocate.exit26 27bitmap_element_allocate.exit:28 %tobool43 = icmp eq ptr %add.ptr81.i, null29 ret void30}31 32 33 34; CHECK: polly.stmt.cond.end73.i:35; CHECK-NEXT: %scevgep = getelementptr i8, ptr null, i64 %a36; CHECK-NEXT: store ptr %scevgep, ptr %add.ptr81.i.s2a, align 837; CHECK-NEXT: br label %polly.exiting38