Skip to content

Commit

Permalink
[test] Remove -loop-guard-widening legacy PM tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aeubanks committed Sep 5, 2021
1 parent dfc46f0 commit a43853a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
1 change: 0 additions & 1 deletion llvm/test/Transforms/GuardWidening/basic-loop.ll
@@ -1,5 +1,4 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -S -loop-guard-widening -verify-memoryssa -enable-new-pm=0 < %s | FileCheck %s
; RUN: opt -S -passes="loop-mssa(guard-widening)" -verify-memoryssa < %s | FileCheck %s

declare void @llvm.experimental.guard(i1,...)
Expand Down
14 changes: 4 additions & 10 deletions llvm/test/Transforms/GuardWidening/loop-schedule.ll
@@ -1,17 +1,11 @@
; RUN: opt -S -licm -loop-guard-widening -licm -verify-memoryssa -debug-pass=Structure -enable-new-pm=0 < %s 2>&1 | FileCheck %s --check-prefixes=LPM,CHECK
; RUN: opt -S -passes='licm,guard-widening,licm' -verify-memoryssa -debug-pass-manager < %s 2>&1 | FileCheck %s --check-prefixes=NPM,CHECK
; RUN: opt -S -passes='licm,guard-widening,licm' -verify-memoryssa -debug-pass-manager < %s 2>&1 | FileCheck %s

; Main point of this test is to check the scheduling -- there should be
; no analysis passes needed between LICM and LoopGuardWidening

; LPM: Loop Pass Manager
; LPM: Loop Invariant Code Motion
; LPM-NEXT: Widen guards (within a single loop, as a loop pass)
; LPM-NEXT: Loop Invariant Code Motion

; NPM: LICMPass
; NPM-NEXT: GuardWideningPass
; NPM-NEXT: LICMPass
; CHECK: LICMPass
; CHECK-NEXT: GuardWideningPass
; CHECK-NEXT: LICMPass

declare void @llvm.experimental.guard(i1,...)

Expand Down

0 comments on commit a43853a

Please sign in to comment.