Remove typedef of a pointer type used in a gep to simplify migration of geps to a typeless-pointer future.

I'd modify my migration tool to account for this, but this is the only
instance of a typedef'd pointer type to a gep I found in the whole test
suite, so it didn't seem worthwhile.

llvm-svn: 228970
This commit is contained in:
David Blaikie 2015-02-12 22:45:25 +00:00
parent 271e9f2870
commit 7548aeeb9f
1 changed files with 11 additions and 11 deletions

View File

@ -15,30 +15,30 @@
; Move return address from temporary register (%ebp) to new stack location (60(%esp)) ; Move return address from temporary register (%ebp) to new stack location (60(%esp))
; CHECK: movl [[REGISTER]], 60(%esp) ; CHECK: movl [[REGISTER]], 60(%esp)
%tupl_p = type [9 x i32]* %tupl = type [9 x i32]
declare fastcc void @l297(i32 %r10, i32 %r9, i32 %r8, i32 %r7, i32 %r6, i32 %r5, i32 %r3, i32 %r2) noreturn nounwind declare fastcc void @l297(i32 %r10, i32 %r9, i32 %r8, i32 %r7, i32 %r6, i32 %r5, i32 %r3, i32 %r2) noreturn nounwind
declare fastcc void @l298(i32 %r10, i32 %r9, i32 %r4) noreturn nounwind declare fastcc void @l298(i32 %r10, i32 %r9, i32 %r4) noreturn nounwind
define fastcc void @l186(%tupl_p %r1) noreturn nounwind { define fastcc void @l186(%tupl* %r1) noreturn nounwind {
entry: entry:
%ptr1 = getelementptr %tupl_p %r1, i32 0, i32 0 %ptr1 = getelementptr %tupl* %r1, i32 0, i32 0
%r2 = load i32* %ptr1 %r2 = load i32* %ptr1
%ptr3 = getelementptr %tupl_p %r1, i32 0, i32 1 %ptr3 = getelementptr %tupl* %r1, i32 0, i32 1
%r3 = load i32* %ptr3 %r3 = load i32* %ptr3
%ptr5 = getelementptr %tupl_p %r1, i32 0, i32 2 %ptr5 = getelementptr %tupl* %r1, i32 0, i32 2
%r4 = load i32* %ptr5 %r4 = load i32* %ptr5
%ptr7 = getelementptr %tupl_p %r1, i32 0, i32 3 %ptr7 = getelementptr %tupl* %r1, i32 0, i32 3
%r5 = load i32* %ptr7 %r5 = load i32* %ptr7
%ptr9 = getelementptr %tupl_p %r1, i32 0, i32 4 %ptr9 = getelementptr %tupl* %r1, i32 0, i32 4
%r6 = load i32* %ptr9 %r6 = load i32* %ptr9
%ptr11 = getelementptr %tupl_p %r1, i32 0, i32 5 %ptr11 = getelementptr %tupl* %r1, i32 0, i32 5
%r7 = load i32* %ptr11 %r7 = load i32* %ptr11
%ptr13 = getelementptr %tupl_p %r1, i32 0, i32 6 %ptr13 = getelementptr %tupl* %r1, i32 0, i32 6
%r8 = load i32* %ptr13 %r8 = load i32* %ptr13
%ptr15 = getelementptr %tupl_p %r1, i32 0, i32 7 %ptr15 = getelementptr %tupl* %r1, i32 0, i32 7
%r9 = load i32* %ptr15 %r9 = load i32* %ptr15
%ptr17 = getelementptr %tupl_p %r1, i32 0, i32 8 %ptr17 = getelementptr %tupl* %r1, i32 0, i32 8
%r10 = load i32* %ptr17 %r10 = load i32* %ptr17
%cond = icmp eq i32 %r10, 3 %cond = icmp eq i32 %r10, 3
br i1 %cond, label %true, label %false br i1 %cond, label %true, label %false