[NewPM][opt] Add more codegen passes
authorArthur Eubanks <aeubanks@google.com>
Wed, 29 Jul 2020 23:43:57 +0000 (16:43 -0700)
committerArthur Eubanks <aeubanks@google.com>
Thu, 6 Aug 2020 01:59:52 +0000 (18:59 -0700)
Reduces number of failures by 92.

Reviewed By: ychen

Differential Revision: https://reviews.llvm.org/D85381

llvm/tools/opt/opt.cpp

index e42c90e..3b20d12 100644 (file)
@@ -491,14 +491,21 @@ struct TimeTracerRAII {
 // it exists.
 static bool IsCodegenPass(StringRef Pass) {
   std::vector<StringRef> PassNamePrefix = {
-      "x86-",    "xcore-", "wasm-",  "systemz-", "ppc-",    "nvvm-",
-      "nvptx-",  "mips-",  "lanai-", "hexagon-", "bpf-",    "avr-",
-      "thumb2-", "arm-",   "si-",    "gcn-",     "amdgpu-", "aarch64-"};
+      "x86-",  "xcore-", "wasm-",    "systemz-", "ppc-",   "nvvm-",   "nvptx-",
+      "mips-", "lanai-", "hexagon-", "bpf-",     "avr-",   "thumb2-", "arm-",
+      "si-",   "gcn-",   "amdgpu-",  "aarch64-", "amdgcn-"};
   std::vector<StringRef> PassNameContain = {"ehprepare"};
   std::vector<StringRef> PassNameExact = {
       "safe-stack",           "cost-model",
       "codegenprepare",       "interleaved-load-combine",
-      "unreachableblockelim", "sclaraized-masked-mem-intrin"};
+      "unreachableblockelim", "scalarize-masked-mem-intrin",
+      "verify-safepoint-ir",  "divergence",
+      "infer-address-spaces", "atomic-expand",
+      "hardware-loops",       "type-promotion",
+      "mve-tail-predication", "interleaved-access",
+      "global-merge",         "pre-isel-intrinsic-lowering",
+      "expand-reductions",    "indirectbr-expand",
+      "generic-to-nvvm",      "expandmemcmp"};
   for (const auto &P : PassNamePrefix)
     if (Pass.startswith(P))
       return true;