Unverified Commit 7dc2f660 authored by Qiongsi Wu's avatar Qiongsi Wu Committed by DianQK
Browse files

Reland "[SimplifyCFG] `switch`: Do Not Transform the Default Case if the...

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 39bb790b)
parent 64ed699b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment