1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -S %s -passes=loop-instsimplify | FileCheck %s
3 ; RUN: opt -S %s -passes='loop-mssa(loop-instsimplify)' -verify-memoryssa | FileCheck %s
5 define i32 @test_01() {
6 ; CHECK-LABEL: @test_01(
8 ; CHECK-NEXT: br label [[LOOP:%.*]]
10 ; CHECK-NEXT: br label [[LOOP]]
12 ; CHECK-NEXT: ret i32 0
17 loop: ; preds = %bb, %loop
18 %tmp = lshr exact i32 undef, 16
21 unreached: ; No predecessors!