[llvm-commits] [llvm] r50125 - /llvm/trunk/test/Transforms/InstCombine/2008-04-22-ByValBitcast.ll
Chris Lattner
sabre at nondot.org
Tue Apr 22 20:03:43 PDT 2008
Author: lattner
Date: Tue Apr 22 22:03:42 2008
New Revision: 50125
URL: http://llvm.org/viewvc/llvm-project?rev=50125&view=rev
Log:
distill down the essense of this test.
Modified:
llvm/trunk/test/Transforms/InstCombine/2008-04-22-ByValBitcast.ll
Modified: llvm/trunk/test/Transforms/InstCombine/2008-04-22-ByValBitcast.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/2008-04-22-ByValBitcast.ll?rev=50125&r1=50124&r2=50125&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/2008-04-22-ByValBitcast.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/2008-04-22-ByValBitcast.ll Tue Apr 22 22:03:42 2008
@@ -7,14 +7,8 @@
define void @foo(i8* %context) nounwind {
entry:
- %context_addr = alloca i8* ; <i8**> [#uses=2]
- %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
- store i8* %context, i8** %context_addr
- %tmp = load i8** %context_addr, align 4 ; <i8*> [#uses=1]
- %tmp1 = bitcast i8* %tmp to %struct.NSRect* ; <%struct.NSRect*> [#uses=1]
+ %tmp1 = bitcast i8* %context to %struct.NSRect* ; <%struct.NSRect*> [#uses=1]
call void (i32, ...)* @bar( i32 3, %struct.NSRect* byval align 4 %tmp1 ) nounwind
- br label %return
-return: ; preds = %entry
ret void
}
More information about the llvm-commits
mailing list