[WebAssembly] Don't perform the returned-argument optimization on constants.
[oota-llvm.git] / test / CodeGen / Generic / call-ret0.ll
1 ; RUN: llc < %s
2 define i32 @foo(i32 %x) {
3         ret i32 %x
4 }
5
6 define i32 @main() {
7         %r = call i32 @foo( i32 0 )             ; <i32> [#uses=1]
8         ret i32 %r
9 }
10