basic-interproc.ll 573 B

123456789101112131415161718192021222324
  1. ; This testcase ensures that CFL AA gives conservative answers on variables
  2. ; that involve arguments.
  3. ; RUN: opt < %s -cfl-aa -aa-eval -print-may-aliases -disable-output 2>&1 | FileCheck %s
  4. ; CHECK: Function: test
  5. ; CHECK: 2 Total Alias Queries Performed
  6. ; CHECK: 1 no alias responses
  7. ; ^^ In @test2, %arg1 and %arg2 may alias
  8. define void @test2(i32* %arg1, i32* %arg2) {
  9. store i32 0, i32* %arg1
  10. store i32 0, i32* %arg2
  11. ret void
  12. }
  13. define void @test() {
  14. %a = alloca i32, align 4
  15. %b = alloca i32, align 4
  16. call void @test2(i32* %a, i32* %b)
  17. ret void
  18. }