1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt %s -verify-memoryssa -passes='loop-mssa(loop-deletion,loop-simplifycfg)' -S | FileCheck %s
4 ; This is a case where we failed to update memory SSA correctly in
5 ; loop-deletion which escapes local verification, but causes a crash
7 define void @func_45() {
8 ; CHECK-LABEL: @func_45(
10 ; CHECK-NEXT: br label [[FOR_BODY45:%.*]]
12 ; CHECK-NEXT: store i32 433429641, ptr undef, align 1
13 ; CHECK-NEXT: br label [[FOR_BODY45]]
18 for.body45: ; preds = %for.end72, %entry
21 for.body48: ; preds = %for.body48, %for.body45
22 store i32 433429641, ptr undef, align 1
23 br i1 undef, label %for.body48, label %for.end72
25 for.end72: ; preds = %for.body48