[llvm] [SimplifyCFG] Don't use a mask for lookup tables generated from switches with an unreachable default case (PR #94468)

via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 8 05:38:53 PDT 2024


================
@@ -0,0 +1,534 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: opt < %s -passes=simplifycfg -switch-to-lookup=true -keep-loops=false -S | FileCheck %s
----------------
DaMatrix wrote:

Alright, I've removed `-keep-loops=false` and the second `RUN`. I copied those lines from the original `switch_to_lookup_table.ll`; I assumed there was some reason why both versions were being tested.

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


More information about the llvm-commits mailing list