diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp --- a/llvm/tools/opt/opt.cpp +++ b/llvm/tools/opt/opt.cpp @@ -491,14 +491,21 @@ // it exists. static bool IsCodegenPass(StringRef Pass) { std::vector 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 PassNameContain = {"ehprepare"}; std::vector 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;