[PATCH] D85394: [NewPM][GuardWidening] Fix loop guard widening tests under NPM

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 5 21:15:14 PDT 2020


aeubanks created this revision.
aeubanks added reviewers: ychen, asbirlea.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
aeubanks requested review of this revision.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85394

Files:
  llvm/test/Transforms/GuardWidening/loop-schedule.ll


Index: llvm/test/Transforms/GuardWidening/loop-schedule.ll
===================================================================
--- llvm/test/Transforms/GuardWidening/loop-schedule.ll
+++ llvm/test/Transforms/GuardWidening/loop-schedule.ll
@@ -1,12 +1,13 @@
-; RUN: opt -S -licm -loop-guard-widening -licm -debug-pass=Structure < %s 2>&1   | FileCheck %s
+; RUN: opt -S -licm -loop-guard-widening -licm -debug-pass=Structure -enable-new-pm=0 < %s 2>&1 | FileCheck %s --check-prefixes=LPM,CHECK
+; RUN: opt -S -passes='licm,guard-widening,licm' -debug-pass=Structure < %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
 
-; CHECK: Loop Pass Manager
-; CHECK:   Loop Invariant Code Motion
-; CHECK:   Widen guards (within a single loop, as a loop pass)
-; CHECK:   Loop Invariant Code Motion
+; LPM: Loop Pass Manager
+; LPM:   Loop Invariant Code Motion
+; LPM:   Widen guards (within a single loop, as a loop pass)
+; LPM:   Loop Invariant Code Motion
 
 declare void @llvm.experimental.guard(i1,...)
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85394.283480.patch
Type: text/x-patch
Size: 1114 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200806/5a83bbfa/attachment.bin>


More information about the llvm-commits mailing list