Skip to content

Commit 523c0d3

Browse files
[MemorySSA] Update test to use NewPM (#72915)
This test is the last holdout that still uses the legacy loop simplify CFG pass. The issues originally pointed out in the test comments seem to have been fixed now as there are no MemorySSA verification failures.
1 parent 97a6c15 commit 523c0d3

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

llvm/test/Analysis/MemorySSA/update-remove-dead-blocks.ll

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2-
; RUN: opt -simple-loop-unswitch -loop-reduce -loop-simplifycfg -verify-memoryssa -S %s | FileCheck %s
3-
4-
; TODO: also run with NPM, but currently LSR does not preserve LCSSA, causing a verification failure on the test.
5-
; opt -passes='loop-mssa(simple-loop-unswitch<nontrivial>,loop-reduce,simplifycfg)' -verify-memoryssa -S %s | FileCheck %s
2+
; RUN: opt -passes='loop-mssa(simple-loop-unswitch<nontrivial>,loop-reduce,loop-simplifycfg)' -verify-memoryssa -S %s | FileCheck %s
63

74
; Test case for PR47557.
85

@@ -18,8 +15,8 @@ define ptr @test() {
1815
; CHECK-LABEL: @test(
1916
; CHECK-NEXT: entry:
2017
; CHECK-NEXT: switch i32 0, label [[ENTRY_SPLIT:%.*]] [
21-
; CHECK-NEXT: i32 1, label [[FOR_BODY3SPLIT:%.*]]
22-
; CHECK-NEXT: i32 2, label [[FOR_COND2_2_FOR_BODY3_CRIT_EDGE:%.*]]
18+
; CHECK-NEXT: i32 1, label [[FOR_BODY3SPLIT:%.*]]
19+
; CHECK-NEXT: i32 2, label [[FOR_COND2_2_FOR_BODY3_CRIT_EDGE:%.*]]
2320
; CHECK-NEXT: ]
2421
; CHECK: entry.split:
2522
; CHECK-NEXT: br label [[FOR_COND:%.*]]

0 commit comments

Comments
 (0)