[llvm-commits] [llvm] r120319 - /llvm/trunk/test/Transforms/InstCombine/extractvalue.ll
Frits van Bommel
fvbommel at gmail.com
Mon Nov 29 12:55:40 PST 2010
Author: fvbommel
Date: Mon Nov 29 14:55:40 2010
New Revision: 120319
URL: http://llvm.org/viewvc/llvm-project?rev=120319&view=rev
Log:
Update this test to keep testing the -instcombine transform it's supposed to be testing instead of triggering the improved constant folding for insertvalue and extractvalue.
Modified:
llvm/trunk/test/Transforms/InstCombine/extractvalue.ll
Modified: llvm/trunk/test/Transforms/InstCombine/extractvalue.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/extractvalue.ll?rev=120319&r1=120318&r2=120319&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/extractvalue.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/extractvalue.ll Mon Nov 29 14:55:40 2010
@@ -4,10 +4,10 @@
; together
declare void @bar({i32, i32} %a)
-define i32 @foo() {
+define i32 @foo(i32 %a, i32 %b) {
; Build a simple struct and pull values out again
- %s1.1 = insertvalue {i32, i32} undef, i32 0, 0
- %s1 = insertvalue {i32, i32} %s1.1, i32 1, 1
+ %s1.1 = insertvalue {i32, i32} undef, i32 %a, 0
+ %s1 = insertvalue {i32, i32} %s1.1, i32 %b, 1
%v1 = extractvalue {i32, i32} %s1, 0
%v2 = extractvalue {i32, i32} %s1, 1
More information about the llvm-commits
mailing list