[llvm] SimplifyCFG: Enable switch replacements in more cases (PR #156477)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 2 09:34:21 PDT 2025


================
@@ -0,0 +1,445 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
+; RUN: opt -S -passes='simplifycfg' < %s | FileCheck %s --check-prefix=OPTNOLUT
+; RUN: opt -mtriple=amdgcn--amdpal -S -passes='simplifycfg<switch-to-lookup>' < %s | FileCheck %s --check-prefix=TTINOLUT
----------------
dtcxzyw wrote:

Should be wrapped with `%if amdgpu-registered-target %{ ... %}`.


https://github.com/llvm/llvm-project/pull/156477


More information about the llvm-commits mailing list