21 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py2; RUN: opt -S -passes=globalopt < %s | FileCheck %s3 4; In this case an instruction queued for recursive deletion gets RAUWd with5; a constant in the meantime. Make sure this does not cause an assertion6; failure.7 8@a = internal global ptr null9@b = internal global ptr @a10 11define void @test() {12; CHECK-LABEL: @test(13; CHECK-NEXT: ret void14;15 %v1 = load ptr, ptr @b16 %v2 = load ptr, ptr %v117 store ptr %v2, ptr @a18 ret void19}20 21