diff options
author | Sam Clegg <sbc@chromium.org> | 2018-11-16 21:20:00 +0000 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2018-11-16 21:20:00 +0000 |
commit | a2827edc2f1055781b248ad245447ed2a3973ffe (patch) | |
tree | 24101a6c6da377dcc6a3c4b236dd73bb2b48e349 /llvm/test/CodeGen | |
parent | 2e3e224e715eeb85ca9640e19ce14cd0bd4f3f6b (diff) | |
download | bcm5719-llvm-a2827edc2f1055781b248ad245447ed2a3973ffe.tar.gz bcm5719-llvm-a2827edc2f1055781b248ad245447ed2a3973ffe.zip |
[WebAssembly] Cleanup unused declares in test code. NFC.
In one case probably you have be using it, in the other it
looks like it was redundant.
Differential Revision: https://reviews.llvm.org/D54644
llvm-svn: 347098
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r-- | llvm/test/CodeGen/WebAssembly/byval.ll | 3 | ||||
-rw-r--r-- | llvm/test/CodeGen/WebAssembly/indirect-import.ll | 9 |
2 files changed, 8 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/byval.ll b/llvm/test/CodeGen/WebAssembly/byval.ll index c4f40359314..2aeeef724e7 100644 --- a/llvm/test/CodeGen/WebAssembly/byval.ll +++ b/llvm/test/CodeGen/WebAssembly/byval.ll @@ -10,14 +10,11 @@ target triple = "wasm32-unknown-unknown" %BigStruct = type { double, double, double, double, double, double, double, double, double, double, double, i8, i8, i8 } %EmptyStruct = type { } -%BigArray = type { [33 x i8] } - declare void @ext_func(%SmallStruct*) declare void @ext_func_empty(%EmptyStruct* byval) declare void @ext_byval_func(%SmallStruct* byval) declare void @ext_byval_func_align8(%SmallStruct* byval align 8) declare void @ext_byval_func_alignedstruct(%AlignedStruct* byval) -declare void @ext_byval_func_bigarray(%BigArray* byval) declare void @ext_byval_func_empty(%EmptyStruct* byval) ; CHECK-LABEL: byval_arg diff --git a/llvm/test/CodeGen/WebAssembly/indirect-import.ll b/llvm/test/CodeGen/WebAssembly/indirect-import.ll index 2e7d81a20c7..1c86b30e1a9 100644 --- a/llvm/test/CodeGen/WebAssembly/indirect-import.ll +++ b/llvm/test/CodeGen/WebAssembly/indirect-import.ll @@ -9,7 +9,7 @@ target triple = "wasm32" %struct.big = type { float, double, i32 } ; Function Attrs: nounwind -; CHECK: bar: +; CHECK-LABEL: bar: define hidden i32 @bar() #0 { entry: %fd = alloca float (double)*, align 4 @@ -18,6 +18,7 @@ entry: %ijidf = alloca i32 (i64, i32, double, float)*, align 4 %vs = alloca void (%struct.big*)*, align 4 %s = alloca void (%struct.big*)*, align 4 + %i128ret = alloca i128 (i64)*, align 8 ; CHECK-DAG: i32.const {{.+}}=, extern_fd@FUNCTION ; CHECK-DAG: i32.const {{.+}}=, extern_vj@FUNCTION @@ -42,6 +43,12 @@ entry: store void (%struct.big*)* @extern_sret, void (%struct.big*)** %s, align 4 %3 = load float (double)*, float (double)** %fd, align 4 %4 = ptrtoint float (double)* %3 to i32 + +; CHECK: i32.const {{.+}}=, extern_i128ret@FUNCTION + store i128 (i64)* @extern_i128ret, i128 (i64)** %i128ret, align 8 + %5 = load i128 (i64)*, i128 (i64)** %i128ret, align 8 + %6 = call i128 %5(i64 1) + ret i32 %4 } |