[WebAssembly] Don't perform the returned-argument optimization on constants.
[oota-llvm.git] / test / CodeGen / ARM / 2008-02-29-RegAllocLocal.ll
1 ; RUN: llc < %s -mtriple=arm-apple-darwin -regalloc=fast -optimize-regalloc=0
2 ; PR1925
3
4         %"struct.kc::impl_Ccode_option" = type { %"struct.kc::impl_abstract_phylum" }
5         %"struct.kc::impl_ID" = type { %"struct.kc::impl_abstract_phylum", %"struct.kc::impl_Ccode_option"*, %"struct.kc::impl_casestring__Str"*, i32, %"struct.kc::impl_casestring__Str"* }
6         %"struct.kc::impl_abstract_phylum" = type { i32 (...)** }
7         %"struct.kc::impl_casestring__Str" = type { %"struct.kc::impl_abstract_phylum", i8* }
8
9 define %"struct.kc::impl_ID"* @_ZN2kc18f_typeofunpsubtermEPNS_15impl_unpsubtermEPNS_7impl_IDE(%"struct.kc::impl_Ccode_option"* %a_unpsubterm, %"struct.kc::impl_ID"* %a_operator) {
10 entry:
11         %tmp8 = getelementptr %"struct.kc::impl_Ccode_option", %"struct.kc::impl_Ccode_option"* %a_unpsubterm, i32 0, i32 0, i32 0              ; <i32 (...)***> [#uses=0]
12         br i1 false, label %bb41, label %bb55
13
14 bb41:           ; preds = %entry
15         ret %"struct.kc::impl_ID"* null
16
17 bb55:           ; preds = %entry
18         %tmp67 = tail call i32 null( %"struct.kc::impl_abstract_phylum"* null )         ; <i32> [#uses=0]
19         %tmp97 = tail call i32 null( %"struct.kc::impl_abstract_phylum"* null )         ; <i32> [#uses=0]
20         ret %"struct.kc::impl_ID"* null
21 }