brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 4200339 Raw
40 lines · plain
1; RUN: opt %loadNPMPolly '-passes=polly-custom<detect>' -polly-print-detect -polly-detect-track-failures -disable-output -pass-remarks-missed=polly-detect < %s 2>&1 | FileCheck %s --check-prefix=REMARK2; RUN: opt %loadNPMPolly '-passes=polly-custom<detect>' -polly-print-detect -polly-detect-track-failures -disable-output -stats < %s 2>&1 | FileCheck %s --check-prefix=STAT3; REQUIRES: asserts4 5; REMARK: Branch from indirect terminator.6 7; STAT: 1 polly-detect - Number of rejected regions: Branch from indirect terminator8 9 10target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"11target triple = "x86_64-unknown-linux-gnu"12 13define void @func(i32 %n, ptr noalias nonnull %A) {14entry:15  callbr void asm sideeffect "", "!i,~{dirflag},~{fpsr},~{flags}"() #116          to label %fallthrough [label %for]17 18fallthrough:19  br label %for20 21for:22  %j = phi i32 [0, %entry], [0, %fallthrough], [%j.inc, %inc]23  %j.cmp = icmp slt i32 %j, %n24  br i1 %j.cmp, label %body, label %exit25 26    body:27      store double 42.0, ptr %A28      br label %inc29 30inc:31  %j.inc = add nuw nsw i32 %j, 132  br label %for33 34exit:35  br label %return36 37return:38  ret void39}40