[llvm-commits] [llvm] r138925 - in /llvm/trunk/test/Transforms: DeadArgElim/2009-03-17-MRE-Invoke.ll FunctionAttrs/2008-12-31-NoCapture.ll GVN/2010-05-08-OneBit.ll IPConstantProp/return-argument.ll IPConstantProp/return-constant.ll
Bill Wendling
isanbard at gmail.com
Wed Aug 31 17:58:03 PDT 2011
Author: void
Date: Wed Aug 31 19:58:03 2011
New Revision: 138925
URL: http://llvm.org/viewvc/llvm-project?rev=138925&view=rev
Log:
Update some tests to the new EH scheme.
Modified:
llvm/trunk/test/Transforms/DeadArgElim/2009-03-17-MRE-Invoke.ll
llvm/trunk/test/Transforms/FunctionAttrs/2008-12-31-NoCapture.ll
llvm/trunk/test/Transforms/GVN/2010-05-08-OneBit.ll
llvm/trunk/test/Transforms/IPConstantProp/return-argument.ll
llvm/trunk/test/Transforms/IPConstantProp/return-constant.ll
Modified: llvm/trunk/test/Transforms/DeadArgElim/2009-03-17-MRE-Invoke.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/DeadArgElim/2009-03-17-MRE-Invoke.ll?rev=138925&r1=138924&r2=138925&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/DeadArgElim/2009-03-17-MRE-Invoke.ll (original)
+++ llvm/trunk/test/Transforms/DeadArgElim/2009-03-17-MRE-Invoke.ll Wed Aug 31 19:58:03 2011
@@ -11,6 +11,8 @@
%y = extractvalue {i32,i32} %x, 1
ret i32 %y
T2:
+ %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+ cleanup
unreachable
}
@@ -22,5 +24,9 @@
%y = extractvalue {i32,i32} %x, 1
ret i32 %y
T2:
+ %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+ cleanup
unreachable
}
+
+declare i32 @__gxx_personality_v0(...)
Modified: llvm/trunk/test/Transforms/FunctionAttrs/2008-12-31-NoCapture.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/FunctionAttrs/2008-12-31-NoCapture.ll?rev=138925&r1=138924&r2=138925&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/FunctionAttrs/2008-12-31-NoCapture.ll (original)
+++ llvm/trunk/test/Transforms/FunctionAttrs/2008-12-31-NoCapture.ll Wed Aug 31 19:58:03 2011
@@ -46,9 +46,13 @@
ret0:
ret i1 0
ret1:
+ %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+ cleanup
ret i1 1
}
+declare i32 @__gxx_personality_v0(...)
+
define i1* @lookup_bit(i32* %q, i32 %bitno) readnone nounwind {
%tmp = ptrtoint i32* %q to i32
%tmp2 = lshr i32 %tmp, %bitno
Modified: llvm/trunk/test/Transforms/GVN/2010-05-08-OneBit.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GVN/2010-05-08-OneBit.ll?rev=138925&r1=138924&r2=138925&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/GVN/2010-05-08-OneBit.ll (original)
+++ llvm/trunk/test/Transforms/GVN/2010-05-08-OneBit.ll Wed Aug 31 19:58:03 2011
@@ -45,6 +45,8 @@
ret i32 0
landing_pad: ; preds = %l147.i.i, %l129.i.i, %l117.i.i
+ %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+ cleanup
switch i32 undef, label %fin [
i32 1, label %catch1
i32 2, label %catch
@@ -61,3 +63,5 @@
}
declare fastcc void @foo()
+
+declare i32 @__gxx_personality_v0(...)
Modified: llvm/trunk/test/Transforms/IPConstantProp/return-argument.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/IPConstantProp/return-argument.ll?rev=138925&r1=138924&r2=138925&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/IPConstantProp/return-argument.ll (original)
+++ llvm/trunk/test/Transforms/IPConstantProp/return-argument.ll Wed Aug 31 19:58:03 2011
@@ -36,14 +36,22 @@
;; propagated per-caller).
%S1 = call { i32, i32 } @foo(i32 1, i32 2)
%X1 = extractvalue { i32, i32 } %S1, 0
- %S2 = invoke { i32, i32 } @foo(i32 3, i32 4) to label %OK unwind label %RET
+ %S2 = invoke { i32, i32 } @foo(i32 3, i32 4) to label %OK unwind label %LPAD
+
OK:
%X2 = extractvalue { i32, i32 } %S2, 0
;; Do some stuff with the returned values which we can grep for
%Z = add i32 %X1, %X2
store i32 %Z, i32* %W
br label %RET
+
+LPAD:
+ %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+ cleanup
+ br label %RET
+
RET:
ret void
}
+declare i32 @__gxx_personality_v0(...)
Modified: llvm/trunk/test/Transforms/IPConstantProp/return-constant.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/IPConstantProp/return-constant.ll?rev=138925&r1=138924&r2=138925&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/IPConstantProp/return-constant.ll (original)
+++ llvm/trunk/test/Transforms/IPConstantProp/return-constant.ll Wed Aug 31 19:58:03 2011
@@ -22,5 +22,9 @@
%Y = icmp ne i32 %X, 0 ; <i1> [#uses=1]
ret i1 %Y
FAIL:
+ %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+ cleanup
ret i1 false
}
+
+declare i32 @__gxx_personality_v0(...)
More information about the llvm-commits
mailing list