brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · d9cc3e5 Raw
31 lines · plain
1; PR26529: Check the assumption of IndVarSimplify to do SCEV expansion in literal mode2; instead of CanonicalMode is properly maintained in SCEVExpander::expand.3; RUN: opt -passes=indvars < %s4 5target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"6target triple = "x86_64-unknown-linux-gnu"7 8; Function Attrs: norecurse nounwind uwtable9define void @ehF(i1 %arg) {10entry:11  br i1 %arg, label %if.then.i, label %hup.exit12 13if.then.i:                                        ; preds = %entry14  br i1 %arg, label %for.body.lr.ph.i, label %hup.exit15 16for.body.lr.ph.i:                                 ; preds = %if.then.i17  br label %for.body.i18 19for.body.i:                                       ; preds = %for.body.i, %for.body.lr.ph.i20  %i.03.i = phi i32 [ 0, %for.body.lr.ph.i ], [ %inc.i, %for.body.i ]21  %k.02.i = phi i32 [ 1, %for.body.lr.ph.i ], [ %inc5.i, %for.body.i ]22  %inc.i = add nsw i32 %i.03.i, 123  %idxprom.i = sext i32 %i.03.i to i6424  %idxprom2.i = sext i32 %k.02.i to i6425  %inc5.i = add nsw i32 %k.02.i, 126  br i1 false, label %for.body.i, label %hup.exit27 28hup.exit:                                         ; preds = %for.body.i, %if.then.i, %entry29  ret void30}31