brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.8 KiB · edd38ca Raw
74 lines · plain
1; RUN: opt %loadNPMPolly '-passes=polly<no-default-opts>' -polly-invariant-load-hoisting=true -S < %s | FileCheck %s2;3; This crashed at some point as the invariant load is in a non-affine4; subregion. Just check it does not anymore.5;6; CHECK: polly.start7;8; ModuleID = 'bugpoint-reduced-simplified.bc'9target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"10 11%struct.d = type { i32, i32, i32, i32, float, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }12 13@board = external global [421 x i8], align 1614@output_flags = external global i32, align 415@dragon = external global [400 x %struct.d], align 1616 17; Function Attrs: nounwind uwtable18define void @sgffile_add_debuginfo() #0 {19entry:20  br label %entry.split21 22entry.split:                                      ; preds = %entry23  %0 = getelementptr inbounds [24 x i8], [24 x i8]* undef, i64 0, i64 024  br i1 false, label %cleanup, label %for.cond1.preheader25 26for.cond1.preheader:                              ; preds = %entry.split27  br i1 false, label %if.then7, label %land.lhs.true4928 29if.then7:                                         ; preds = %for.cond1.preheader30  %arrayidx = getelementptr inbounds [421 x i8], [421 x i8]* @board, i64 0, i64 031  %crude_status = getelementptr inbounds [400 x %struct.d], [400 x %struct.d]* @dragon, i64 0, i64 0, i32 532  switch i32 0, label %if.end15 [33    i32 0, label %sw.bb34    i32 2, label %sw.bb1335  ]36 37sw.bb:                                            ; preds = %if.then738  br label %if.end1539 40sw.bb13:                                          ; preds = %if.then741  br label %if.end1542 43if.end15:                                         ; preds = %sw.bb13, %sw.bb, %if.then744  %cmp21 = fcmp ogt float undef, 0.000000e+0045  br i1 %cmp21, label %land.lhs.true23, label %for.cond1.for.inc44_crit_edge46 47land.lhs.true23:                                  ; preds = %if.end1548  %1 = load i32, i32* @output_flags, align 449  %and24 = and i32 %1, 250  %tobool25 = icmp eq i32 %and24, 051  br i1 %tobool25, label %for.cond1.for.inc44_crit_edge, label %if.else52 53if.else:                                          ; preds = %land.lhs.true2354  br label %for.cond1.for.inc44_crit_edge55 56for.cond1.for.inc44_crit_edge:                    ; preds = %if.else, %land.lhs.true23, %if.end1557  br label %land.lhs.true4958 59land.lhs.true49:                                  ; preds = %for.cond1.for.inc44_crit_edge, %for.cond1.preheader60  %2 = load i32, i32* @output_flags, align 461  %and50 = and i32 %2, 262  %tobool51 = icmp eq i32 %and50, 063  br i1 %tobool51, label %cleanup, label %if.then5264 65if.then52:                                        ; preds = %land.lhs.true4966  br label %cleanup67 68cleanup:                                          ; preds = %if.then52, %land.lhs.true49, %entry.split69  call void @dummy(ptr %0)70  ret void71}72 73declare void @dummy(ptr)74