1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -S -passes=globalopt < %s | FileCheck %s
4 ; In this case an instruction queued for recursive deletion gets RAUWd with
5 ; a constant in the meantime. Make sure this does not cause an assertion
8 @a = internal global ptr null
9 @b = internal global ptr @a
13 ; CHECK-NEXT: ret void
15 %v1 = load ptr, ptr @b
16 %v2 = load ptr, ptr %v1