diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-10-24 04:00:25 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-10-24 04:00:25 +0000 |
commit | 38af3d5a8dbcada6f264d3a268f525a827adaca2 (patch) | |
tree | d868789fe084d5ee09e64f921ebadfc8f8cd43a0 /test/Analysis | |
parent | 5d0700786d53046b3d5d7fe0d8d207290a13872c (diff) |
Speculatively revert r142781. Bots are showing
Assertion `i_nocapture < OperandTraits<PHINode>::operands(this) && "getOperand() out of range!"' failed.
coming out of indvars.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142786 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis')
-rw-r--r-- | test/Analysis/ScalarEvolution/load.ll | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/test/Analysis/ScalarEvolution/load.ll b/test/Analysis/ScalarEvolution/load.ll index 2ff86e9d3c..203515285b 100644 --- a/test/Analysis/ScalarEvolution/load.ll +++ b/test/Analysis/ScalarEvolution/load.ll @@ -1,4 +1,5 @@ ; RUN: opt -analyze -scalar-evolution < %s 2>&1 | FileCheck %s +; PR11034 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32" target triple = "i386-pc-linux-gnu" @@ -6,7 +7,6 @@ target triple = "i386-pc-linux-gnu" @arr1 = internal unnamed_addr constant [50 x i32] [i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31, i32 32, i32 33, i32 34, i32 35, i32 36, i32 37, i32 38, i32 39, i32 40, i32 41, i32 42, i32 43, i32 44, i32 45, i32 46, i32 47, i32 48, i32 49, i32 50], align 4 @arr2 = internal unnamed_addr constant [50 x i32] [i32 49, i32 48, i32 47, i32 46, i32 45, i32 44, i32 43, i32 42, i32 41, i32 40, i32 39, i32 38, i32 37, i32 36, i32 35, i32 34, i32 33, i32 32, i32 31, i32 30, i32 29, i32 28, i32 27, i32 26, i32 25, i32 24, i32 23, i32 22, i32 21, i32 20, i32 19, i32 18, i32 17, i32 16, i32 15, i32 14, i32 13, i32 12, i32 11, i32 10, i32 9, i32 8, i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0], align 4 -; PR11034 define i32 @test1() nounwind readnone { ; CHECK: test1 entry: @@ -31,35 +31,3 @@ for.body: ; preds = %entry, %for.body for.end: ; preds = %for.body ret i32 %add2 } - - -%struct.ListNode = type { %struct.ListNode*, i32 } - -@node5 = internal constant { %struct.ListNode*, i32, [4 x i8] } { %struct.ListNode* bitcast ({ %struct.ListNode*, i32, [4 x i8] }* @node4 to %struct.ListNode*), i32 4, [4 x i8] undef }, align 8 -@node4 = internal constant { %struct.ListNode*, i32, [4 x i8] } { %struct.ListNode* bitcast ({ %struct.ListNode*, i32, [4 x i8] }* @node3 to %struct.ListNode*), i32 3, [4 x i8] undef }, align 8 -@node3 = internal constant { %struct.ListNode*, i32, [4 x i8] } { %struct.ListNode* bitcast ({ %struct.ListNode*, i32, [4 x i8] }* @node2 to %struct.ListNode*), i32 2, [4 x i8] undef }, align 8 -@node2 = internal constant { %struct.ListNode*, i32, [4 x i8] } { %struct.ListNode* bitcast ({ %struct.ListNode*, i32, [4 x i8] }* @node1 to %struct.ListNode*), i32 1, [4 x i8] undef }, align 8 -@node1 = internal constant { %struct.ListNode*, i32, [4 x i8] } { %struct.ListNode* null, i32 0, [4 x i8] undef }, align 8 - -define i32 @test2() nounwind uwtable readonly { -; CHECK: test2 -entry: - br label %for.body - -for.body: ; preds = %entry, %for.body - %sum.02 = phi i32 [ 0, %entry ], [ %add, %for.body ] -; CHECK: --> %sum.02{{ *}}Exits: 10 - %n.01 = phi %struct.ListNode* [ bitcast ({ %struct.ListNode*, i32, [4 x i8] }* @node5 to %struct.ListNode*), %entry ], [ %1, %for.body ] -; CHECK: --> %n.01{{ *}}Exits: @node1 - %i = getelementptr inbounds %struct.ListNode* %n.01, i64 0, i32 1 - %0 = load i32* %i, align 4 - %add = add nsw i32 %0, %sum.02 - %next = getelementptr inbounds %struct.ListNode* %n.01, i64 0, i32 0 - %1 = load %struct.ListNode** %next, align 8 -; CHECK: --> %1{{ *}}Exits: 0 - %cmp = icmp eq %struct.ListNode* %1, null - br i1 %cmp, label %for.end, label %for.body - -for.end: ; preds = %for.body - ret i32 %add -} |