apint-bigarray.ll 533 B

1234567891011121314151617181920212223
  1. ; RUN: opt < %s -sccp -S | not grep %X
  2. @G = global [1000000 x i10000] zeroinitializer
  3. define internal i10000* @test(i10000 %Arg) {
  4. %X = getelementptr [1000000 x i10000], [1000000 x i10000]* @G, i32 0, i32 999
  5. store i10000 %Arg, i10000* %X
  6. ret i10000* %X
  7. }
  8. define i10000 @caller()
  9. {
  10. %Y = call i10000* @test(i10000 -1)
  11. %Z = load i10000, i10000* %Y
  12. ret i10000 %Z
  13. }
  14. define i10000 @caller2()
  15. {
  16. %Y = call i10000* @test(i10000 1)
  17. %Z = load i10000, i10000* %Y
  18. ret i10000 %Z
  19. }