cfg_preserve_test.ll 318 B

12345678910111213141516
  1. ; This test ensures that inlining an "empty" function does not destroy the CFG
  2. ;
  3. ; RUN: opt < %s -inline -S | not grep br
  4. define i32 @func(i32 %i) {
  5. ret i32 %i
  6. }
  7. declare void @bar()
  8. define i32 @main(i32 %argc) {
  9. Entry:
  10. %X = call i32 @func( i32 7 ) ; <i32> [#uses=1]
  11. ret i32 %X
  12. }