[all-commits] [llvm/llvm-project] ffb312: [CIR] Don't 'simplify' switch-case if there is som...
Erich Keane via All-commits
all-commits at lists.llvm.org
Wed Sep 30 10:02:06 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ffb3120b0aae71d16c275bfb4a56b8633897fdae
https://github.com/llvm/llvm-project/commit/ffb3120b0aae71d16c275bfb4a56b8633897fdae
Author: Erich Keane <ekeane at nvidia.com>
Date: 2026-09-30 (Wed, 30 Sep 2026)
Changed paths:
M clang/lib/CIR/Dialect/Transforms/CIRSimplify.cpp
M clang/test/CIR/Transforms/switch-fold.cir
Log Message:
-----------
[CIR] Don't 'simplify' switch-case if there is something in the way. (#227437)
The simplify case code was assuming that cases were mergeable, and
didn't realize that code in the middle (like the goto in the test case)
meant they couldn't be re-joined. This patch adds that to the
CIRSimplify logic to make sure we con't try to combine cases that have
something 'in between'.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list