Unverified Commit 39bb790b authored by Qiongsi Wu's avatar Qiongsi Wu Committed by GitHub
Browse files

[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.
parent b32001a2
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