brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.2 KiB · 7ae02f3 Raw
55 lines · plain
1; RUN: opt -passes='loop-mssa(loop-rotate,licm)' -verify-memoryssa %s -S | FileCheck %s2; REQUIRES: asserts3 4target datalayout = "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-a:8:16-n32:64"5target triple = "s390x-ibm-linux"6 7declare void @llvm.lifetime.end.p0(ptr nocapture)8 9; CHECK-LABEL: @func_42()10define void @func_42() {11entry:12  br label %for.cond105013 14for.cond1050.loopexit:                            ; preds = %for.cond137315  br label %for.cond105016 17for.cond1050:                                     ; preds = %for.cond1050.loopexit, %entry18  %storemerge6 = phi i32 [ 2, %entry ], [ 0, %for.cond1050.loopexit ]19  %cmp1051 = icmp sgt i32 %storemerge6, -120  br i1 %cmp1051, label %for.cond1055.preheader, label %cleanup1400.loopexit121 22for.cond1055.preheader:                           ; preds = %for.cond105023  store i64 0, ptr null, align 824  %0 = load i64, ptr null, align 825  %tobool1383 = icmp eq i64 %0, 026  br i1 %tobool1383, label %for.cond1055.preheader.cleanup1400.loopexit.split_crit_edge, label %for.cond1055.preheader.for.cond1055.preheader.split_crit_edge27 28for.cond1055.preheader.for.cond1055.preheader.split_crit_edge: ; preds = %for.cond1055.preheader29  br label %for.body137630 31for.cond1055.preheader.cleanup1400.loopexit.split_crit_edge: ; preds = %for.cond1055.preheader32  br label %cleanup1400.loopexit.split33 34for.cond1373:                                     ; preds = %for.body137635  br i1 true, label %for.body1376, label %for.cond1050.loopexit36 37for.body1376:                                     ; preds = %for.cond1373, %for.cond1055.preheader.for.cond1055.preheader.split_crit_edge38  br i1 false, label %cleanup1400.loopexit, label %for.cond137339 40cleanup1400.loopexit:                             ; preds = %for.body137641  br label %cleanup1400.loopexit.split42 43cleanup1400.loopexit.split:                       ; preds = %cleanup1400.loopexit, %for.cond1055.preheader.cleanup1400.loopexit.split_crit_edge44  br label %cleanup140045 46cleanup1400.loopexit1:                            ; preds = %for.cond105047  br label %cleanup140048 49cleanup1400:                                      ; preds = %cleanup1400.loopexit1, %cleanup1400.loopexit.split50  call void @dummy()51  unreachable52}53 54declare void @dummy()55