brintos

brintos / llvm-project-archived public Read only

0
0
Text · 857 B · 1cf79f1 Raw
27 lines · plain
1; RUN: opt %loadNPMPolly '-passes=polly-custom<scops>' -polly-print-scops -disable-output < %s | FileCheck %s2target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"3target triple = "aarch64-unknown-linux-gnueabi"4 5; Make sure we don't crash trying delinearize the memory access6; CHECK: region: 'bb4 => bb14'7; CHECK-NEXT: Invalid Scop!8define void @f(ptr %arg, i32 %arg1, i32 %arg2, i32 %arg3) {9bb:10  br label %bb411 12bb4:13  %tmp = phi i32 [ %arg2, %bb ], [ %tmp12, %bb4 ]14  %tmp5 = icmp sgt i32 %tmp, 015  %tmp6 = select i1 %tmp5, i32 %tmp, i32 016  %tmp7 = mul nsw i32 %tmp6, %arg317  %tmp8 = sext i32 %tmp7 to i6418  %tmp9 = getelementptr inbounds i8, ptr %arg, i64 %tmp819  %tmp11 = load i32, ptr %tmp9, align 420  %tmp12 = add nsw i32 %tmp, 121  %tmp13 = icmp slt i32 %tmp, %arg122  br i1 %tmp13, label %bb4, label %bb1423 24bb14:25  ret void26}27