[llvm-branch-commits] [llvm-branch] r133746 - /llvm/branches/type-system-rewrite/test/Linker/testlink2.ll

Chris Lattner sabre at nondot.org
Thu Jun 23 11:59:55 PDT 2011


Author: lattner
Date: Thu Jun 23 13:59:55 2011
New Revision: 133746

URL: http://llvm.org/viewvc/llvm-project?rev=133746&view=rev
Log:
eliminate upreferences.

Modified:
    llvm/branches/type-system-rewrite/test/Linker/testlink2.ll

Modified: llvm/branches/type-system-rewrite/test/Linker/testlink2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/type-system-rewrite/test/Linker/testlink2.ll?rev=133746&r1=133745&r2=133746&view=diff
==============================================================================
--- llvm/branches/type-system-rewrite/test/Linker/testlink2.ll (original)
+++ llvm/branches/type-system-rewrite/test/Linker/testlink2.ll Thu Jun 23 13:59:55 2011
@@ -3,7 +3,10 @@
 ; RUN: true
 
 @MyVar = global i32 4		; <i32*> [#uses=2]
- at MyIntList = external global { \2*, i32 }		; <{ \2*, i32 }*> [#uses=2]
+
+%intlist = type { %intlist*, i32 }
+
+ at MyIntList = external global %intlist		; <{ \2*, i32 }*> [#uses=2]
 @AConst = constant i32 123		; <i32*> [#uses=0]
 
 ;; Intern in both testlink[12].ll
@@ -12,13 +15,13 @@
 ;; Intern in one but not in other
 @Intern2 = constant i32 12345		; <i32*> [#uses=0]
 
- at MyIntListPtr = constant { { \2*, i32 }* } { { \2*, i32 }* @MyIntList }		; <{ { \2*, i32 }* }*> [#uses=0]
+ at MyIntListPtr = constant { %intlist* } { %intlist* @MyIntList }		; <{ { \2*, i32 }* }*> [#uses=0]
 @MyVarPtr = linkonce global { i32* } { i32* @MyVar }		; <{ i32* }*> [#uses=0]
 constant i32 412		; <i32*>:0 [#uses=1]
 
 define i32 @foo(i32 %blah) {
 	store i32 %blah, i32* @MyVar
-	%idx = getelementptr { \2*, i32 }* @MyIntList, i64 0, i32 1		; <i32*> [#uses=1]
+	%idx = getelementptr %intlist* @MyIntList, i64 0, i32 1		; <i32*> [#uses=1]
 	store i32 12, i32* %idx
 	%ack = load i32* @0		; <i32> [#uses=1]
 	%fzo = add i32 %ack, %blah		; <i32> [#uses=1]





More information about the llvm-branch-commits mailing list