Files
clang-p2996/llvm/test/Transforms/SimplifyCFG/switch-dead-default.ll
Qiongsi Wu 7dc2f66022 Reland "[SimplifyCFG] switch: Do Not Transform the Default Case if the Condition is Too Wide (#77831)"
https://github.com/llvm/llvm-project/pull/76669 taught SimplifyCFG to
handle switches when `default` has only one case. When the `switch`'s
condition is wider than 64 bit, the current implementation can calculate
the wrong default value. This PR skips cases where the condition is too
wide.

(cherry picked from commit 39bb790b90)
2024-05-25 10:38:44 +08:00

10 KiB