1 ; RUN: opt %loadPolly -polly-print-scops -polly-invariant-load-hoisting=true -disable-output < %s | FileCheck %s
2 ; RUN: opt %loadPolly -polly-codegen -polly-invariant-load-hoisting=true -disable-output < %s
4 ; CHECK: Execution Context: [p_0_loaded_from_currpc] -> { : }
6 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
8 @currpc = external global i32, align 4
9 @inbuff = external global ptr, align 8
11 ; Function Attrs: uwtable
12 define void @_Z13dotableswitchP9Classfile() {
14 br i1 undef, label %for.end, label %while.body
16 while.body: ; preds = %while.body, %entry
17 store ptr undef, ptr @inbuff, align 8
18 %0 = load i32, ptr @currpc, align 4
20 %tobool = icmp eq i32 %rem, 0
21 br i1 %tobool, label %while.end, label %while.body
23 while.end: ; preds = %while.body
24 br i1 undef, label %for.end, label %for.body
26 for.body: ; preds = %for.body, %while.end
29 for.end: ; preds = %while.end, %entry