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