[PATCH] D94266: [polly][NewPM][test] Fix polly tests under -enable-new-pm

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 7 14:04:40 PST 2021


aeubanks created this revision.
Herald added a reviewer: bollu.
aeubanks requested review of this revision.
Herald added subscribers: llvm-commits, aheejin.
Herald added a project: LLVM.

In preparation for turning on opt's -enable-new-pm by default, this pins
uses of passes via the legacy "opt -passname" with pass names beginning
with "polly-" or "polyhedral-" to the legacy PM. Many of these tests use
-analyze, which isn't supported in the new PM.

(This doesn't affect uses of "opt -passes=passname").


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94266

Files:
  llvm/tools/opt/opt.cpp
  polly/test/ScopInfo/phi_not_grouped_at_top.ll


Index: polly/test/ScopInfo/phi_not_grouped_at_top.ll
===================================================================
--- polly/test/ScopInfo/phi_not_grouped_at_top.ll
+++ polly/test/ScopInfo/phi_not_grouped_at_top.ll
@@ -1,4 +1,4 @@
-; RUN: opt %loadPolly -analyze  < %s
+; RUN: opt %loadPolly < %s
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
 
 declare i32 @funa() align 2
Index: llvm/tools/opt/opt.cpp
===================================================================
--- llvm/tools/opt/opt.cpp
+++ llvm/tools/opt/opt.cpp
@@ -478,9 +478,10 @@
       return false;
 
   std::vector<StringRef> PassNamePrefix = {
-      "x86-",  "xcore-", "wasm-",    "systemz-", "ppc-",   "nvvm-",   "nvptx-",
-      "mips-", "lanai-", "hexagon-", "bpf-",     "avr-",   "thumb2-", "arm-",
-      "si-",   "gcn-",   "amdgpu-",  "aarch64-", "amdgcn-"};
+      "x86-",    "xcore-", "wasm-",      "systemz-", "ppc-",    "nvvm-",
+      "nvptx-",  "mips-",  "lanai-",     "hexagon-", "bpf-",    "avr-",
+      "thumb2-", "arm-",   "si-",        "gcn-",     "amdgpu-", "aarch64-",
+      "amdgcn-", "polly-", "polyhedral-"};
   std::vector<StringRef> PassNameContain = {"ehprepare"};
   std::vector<StringRef> PassNameExact = {"safe-stack",
                                           "cost-model",


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94266.315237.patch
Type: text/x-patch
Size: 1402 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210107/d5a70496/attachment.bin>


More information about the llvm-commits mailing list