diff options
author | Serguei Katkov <serguei.katkov@azul.com> | 2018-02-07 09:10:08 +0000 |
---|---|---|
committer | Serguei Katkov <serguei.katkov@azul.com> | 2018-02-07 09:10:08 +0000 |
commit | 69246ca7879d81dc3f07d52f768f7550519fbcb6 (patch) | |
tree | ab1a878266b6212eb1df1ddf6820cfe8c8126045 /llvm/test/Transforms/IndVarSimplify/loop-invariant-conditions.ll | |
parent | 27ae7ae7740a89e24f9a670037c6a534884428e9 (diff) | |
download | bcm5719-llvm-69246ca7879d81dc3f07d52f768f7550519fbcb6.tar.gz bcm5719-llvm-69246ca7879d81dc3f07d52f768f7550519fbcb6.zip |
Revert [SCEV] Make isLoopEntryGuardedByCond a bit smarter
Revert rL324453 commit which causes buildbot failures.
Differential Revision: https://reviews.llvm.org/D42835
llvm-svn: 324462
Diffstat (limited to 'llvm/test/Transforms/IndVarSimplify/loop-invariant-conditions.ll')
-rw-r--r-- | llvm/test/Transforms/IndVarSimplify/loop-invariant-conditions.ll | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/llvm/test/Transforms/IndVarSimplify/loop-invariant-conditions.ll b/llvm/test/Transforms/IndVarSimplify/loop-invariant-conditions.ll index 30249828107..70cf714ba9f 100644 --- a/llvm/test/Transforms/IndVarSimplify/loop-invariant-conditions.ll +++ b/llvm/test/Transforms/IndVarSimplify/loop-invariant-conditions.ll @@ -325,36 +325,6 @@ exit: ret void } -; check that we can figure out that iv.next > 1 from the facts that iv >= 0 and -; iv.start != 0. -define void @test11(i64* %inc_ptr) { -; CHECK-LABEL: @test11 -entry: - %inc = load i64, i64* %inc_ptr, !range !0 - %ne.cond = icmp ne i64 %inc, 0 - br i1 %ne.cond, label %loop, label %exit - -loop: - %iv = phi i64 [ %inc, %entry ], [ %iv.next, %backedge ] - %iv.next = add i64 %iv, 1 - %brcond = icmp sgt i64 %iv.next, 1 - ; CHECK: br i1 true, label %if.true, label %if.false - br i1 %brcond, label %if.true, label %if.false - -if.true: - br label %backedge - -if.false: - br label %backedge - -backedge: - %loopcond = icmp slt i64 %iv, 200 - br i1 %loopcond, label %loop, label %exit - -exit: - ret void -} - !1 = !{i64 -1, i64 100} |