From 1c88d41020a3483554ba025c38f5cee79f15b8b5 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Tue, 8 May 2018 07:24:05 +0000 Subject: [PATCH] [test] Replace undef with true/false to make test case less fragile This test case does not require undef to be present in branch conditions. Replace these undef values with true/false values to clarify the control-flow required to reach the loop under testing. llvm-svn: 331744 --- .../test/ScopInfo/scev-div-with-evaluatable-divisor.ll | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/polly/test/ScopInfo/scev-div-with-evaluatable-divisor.ll b/polly/test/ScopInfo/scev-div-with-evaluatable-divisor.ll index d1931c043851..e06da251e0bb 100644 --- a/polly/test/ScopInfo/scev-div-with-evaluatable-divisor.ll +++ b/polly/test/ScopInfo/scev-div-with-evaluatable-divisor.ll @@ -11,14 +11,14 @@ target triple = "x86_64-unknown-linux-gnu" ; Function Attrs: nounwind uwtable define void @cfft2(i32 %n, double* %A) local_unnamed_addr #0 { entry: - br i1 undef, label %for.body.lr.ph, label %for.end + br i1 true, label %for.body.lr.ph, label %for.end for.body.lr.ph: ; preds = %entry br label %for.body for.body: ; preds = %for.inc, %for.body.lr.ph %mj.017 = phi i32 [ 1, %for.body.lr.ph ], [ undef, %for.inc ] - br i1 undef, label %if.else, label %if.then + br i1 true, label %if.else, label %if.then if.then: ; preds = %for.body br label %for.inc @@ -26,16 +26,16 @@ if.then: ; preds = %for.body if.else: ; preds = %for.body %mul.i44 = shl i32 %mj.017, 2 %div.i45 = sdiv i32 %n, %mul.i44 - br i1 undef, label %for.body.i58.lr.ph, label %for.inc + br i1 true, label %for.body.i58.lr.ph, label %for.inc for.body.i58.lr.ph: ; preds = %if.else - br i1 undef, label %for.body.i58.us, label %for.body.i58.preheader + br i1 false, label %for.body.i58.us, label %for.body.i58.preheader for.body.i58.preheader: ; preds = %for.body.i58.lr.ph br label %for.body.i58 for.body.i58.us: ; preds = %for.body.i58.us, %for.body.i58.lr.ph - br i1 undef, label %for.inc, label %for.body.i58.us + br i1 false, label %for.inc, label %for.body.i58.us for.body.i58: ; preds = %for.body.i58, %for.body.i58.preheader store double 0.0, double* %A