Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / Analysis / MemorySSA / pr41853.ll
blob6b88e80c7b4565c4886b8325560d74436f29ffb2
1 ; RUN: opt -S -passes='require<memoryssa>,loop-simplify,early-cse<memssa>' -earlycse-debug-hash -verify-memoryssa %s | FileCheck %s
2 ; REQUIRES: asserts
3 target triple = "x86_64-unknown-linux-gnu"
5 ; CHECK-LABEL: @func()
6 define void @func() {
7   br i1 undef, label %bb5, label %bb3
9 bb5:                                              ; preds = %bb5, %0
10   store i16 undef, ptr undef
11   br i1 undef, label %bb5, label %bb3
13 bb3:                                              ; preds = %bb5, %0
14   ret void