Improve GVN to be able to forward substitute a small load
[oota-llvm.git] / test / Transforms / Inline / indirect_resolve.ll
1 ; RUN: opt < %s -inline | llvm-dis
2 ; PR4834
3
4 define i32 @main() {
5   %funcall1_ = call fastcc i32 ()* ()* @f1()
6   %executecommandptr1_ = call i32 %funcall1_()
7   ret i32 %executecommandptr1_
8 }
9
10 define internal fastcc i32 ()* @f1() nounwind readnone {
11   ret i32 ()* @f2
12 }
13
14 define internal i32 @f2() nounwind readnone {
15   ret i32 1
16 }