2 Commits

Author SHA1 Message Date
Nikita Popov
4d85285ff6
[SimplifyCFG] Fold switch over ucmp/scmp to icmp and br (#105636)
If we switch over ucmp/scmp and have two switch cases going to the same
destination, we can convert into icmp+br.

Fixes https://github.com/llvm/llvm-project/issues/105632.
2024-08-22 16:57:09 +02:00
Nikita Popov
716f7e2d18 [SimplifyCFG] Add tests for switch over cmp intrinsic (NFC) 2024-08-22 11:52:02 +02:00