1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt < %s -passes=ipsccp -S | FileCheck %s
8 ; CHECK-NEXT: ret i32 10
13 ; We can const-prop @baz's return value *into* @foo, but cannot
14 ; constprop @foo's return value into bar.
16 define linkonce_odr i32 @foo() {
18 ; CHECK-NEXT: [[VAL:%.*]] = call i32 @baz()
19 ; CHECK-NEXT: ret i32 10
22 %val = call i32 @baz()
28 ; CHECK-NEXT: [[VAL:%.*]] = call i32 @foo()
29 ; CHECK-NEXT: ret i32 [[VAL]]
32 %val = call i32 @foo()