32 lines · plain
1; RUN: opt %loadNPMPolly '-passes=polly-custom<scops>' -polly-print-scops -polly-invariant-load-hoisting=true -disable-output < %s 2>&1 | FileCheck %s2; RUN: opt %loadNPMPolly '-passes=polly<no-default-opts>' -polly-invariant-load-hoisting=true -disable-output < %s3;4; CHECK: Execution Context: [p_0_loaded_from_currpc] -> { : }5;6target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"7 8@currpc = external global i32, align 49@inbuff = external global ptr, align 810 11; Function Attrs: uwtable12define void @_Z13dotableswitchP9Classfile() {13entry:14 br i1 undef, label %for.end, label %while.body15 16while.body: ; preds = %while.body, %entry17 store ptr undef, ptr @inbuff, align 818 %0 = load i32, ptr @currpc, align 419 %rem = and i32 %0, 320 %tobool = icmp eq i32 %rem, 021 br i1 %tobool, label %while.end, label %while.body22 23while.end: ; preds = %while.body24 br i1 undef, label %for.end, label %for.body25 26for.body: ; preds = %for.body, %while.end27 br label %for.body28 29for.end: ; preds = %while.end, %entry30 ret void31}32