2012-05-11-blockaddress.ll 366 B

12345678910111213141516
  1. ; RUN: opt < %s -globalopt -S | FileCheck %s
  2. ; Check that the mere presence of a blockaddress doesn't prevent -globalopt
  3. ; from promoting @f to fastcc.
  4. ; CHECK-LABEL: define{{.*}}fastcc{{.*}}@f(
  5. define internal i8* @f() {
  6. ret i8* blockaddress(@f, %L1)
  7. L1:
  8. ret i8* null
  9. }
  10. define void @g() {
  11. ; CHECK: call{{.*}}fastcc{{.*}}@f
  12. %p = call i8* @f()
  13. ret void
  14. }