From 58c9643afb4026c3d26e825bcd3b69e065e9f814 Mon Sep 17 00:00:00 2001 From: Philip Reames Date: Wed, 12 Jun 2019 19:23:10 +0000 Subject: [PATCH] [Tests] Autogen RLEV test and add tests for a future enhancement git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363193 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../IndVarSimplify/exit_value_tests.ll | 228 +++++++++++++----- 1 file changed, 171 insertions(+), 57 deletions(-) diff --git a/test/Transforms/IndVarSimplify/exit_value_tests.ll b/test/Transforms/IndVarSimplify/exit_value_tests.ll index e491524fd62..04ee33d9603 100644 --- a/test/Transforms/IndVarSimplify/exit_value_tests.ll +++ b/test/Transforms/IndVarSimplify/exit_value_tests.ll @@ -1,115 +1,229 @@ -; Test that we can evaluate the exit values of various expression types. Since -; these loops all have predictable exit values we can replace the use outside -; of the loop with a closed-form computation, making the loop dead. -; +; NOTE: Assertions have been autogenerated by utils/update_test_checks.py ; RUN: opt < %s -indvars -loop-deletion -simplifycfg -S | FileCheck %s -; CHECK-NOT: br +; Test that we can evaluate the exit values of various expression types. Since +; these loops all have predictable exit values we can replace the use outside +; of the loop with a closed-form computation. define i32 @polynomial_constant() { ;