brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1009 B · 0f670ca Raw
32 lines · plain
1; RUN: opt %loadNPMPolly '-passes=polly-custom<detect>' -polly-print-detect -disable-output < %s 2>&1 | FileCheck %s2 3; CHECK: Detected Scops in Function foo4 5; This unit test case is to check if the following IR does not crash in isHoistableLoad function during Scop Detection.6 7target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128-Fn32"8target triple = "aarch64-unknown-linux-gnueabi"9 10define void @foo(ptr %block) {11entry:12  br label %for.body13 14for.cond1.preheader:                              ; preds = %for.body15  %0 = load ptr, ptr null, align 816  %1 = load i16, ptr %block, align 217  %2 = load i16, ptr %0, align 218  br label %foo.exit19 20for.body:                                         ; preds = %for.body, %entry21  br i1 false, label %for.cond1.preheader, label %for.body22 23foo.exit:                                     ; preds = %for.cond1.preheader24  ret void25}26 27define void @init_foo() {28entry:29  store ptr null, ptr null, align 830  ret void31}32