1; Make sure that Loop which was invalidated by loop-deletion 2; does not lead to problems for -print-after-all and is just skipped. 3; 4; RUN: opt < %s -disable-output \ 5; RUN: -passes=loop-instsimplify -print-after-all 2>&1 | FileCheck %s -check-prefix=SIMPLIFY 6; RUN: opt < %s -disable-output \ 7; RUN: -passes=loop-deletion,loop-instsimplify -print-after-all 2>&1 | FileCheck %s -check-prefix=DELETED 8; RUN: opt < %s -disable-output \ 9; RUN: -passes=loop-deletion,loop-instsimplify -print-after-all -print-module-scope 2>&1 | FileCheck %s -check-prefix=DELETED 10; 11; SIMPLIFY: IR Dump {{.*}} LoopInstSimplifyPass 12; DELETED: IR Dump {{.*}}LoopDeletionPass {{.*}}(invalidated) 13; DELETED-NOT: IR Dump {{.*}}LoopInstSimplifyPass 14 15define void @deleteme() { 16entry: 17 br label %loop 18loop: 19 %iv = phi i32 [ 0, %entry ], [ %iv.next, %loop ] 20 %iv.next = add i32 %iv, 1 21 %check = icmp ult i32 %iv.next, 3 22 br i1 %check, label %loop, label %exit 23exit: 24 ret void 25} 26 27