[llvm] [SimplifyCFG] When only one case value is missing, replace default with that case (PR #76669)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 2 06:42:07 PST 2024


================
@@ -0,0 +1,62 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
+; RUN: opt %s -S -passes='simplifycfg<switch-to-lookup>' -simplifycfg-require-and-preserve-domtree=1 -switch-range-to-icmp | FileCheck %s
+
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
----------------
nikic wrote:

Is the triple needed? I think the data layout should be enough.

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


More information about the llvm-commits mailing list