Skip to content
Commit 8d6a8c13 authored by Benjamin Kramer's avatar Benjamin Kramer
Browse files

SimplifyCFG: Track the number of used icmps when turning a icmp chain into a...

SimplifyCFG: Track the number of used icmps when turning a icmp chain into a switch. If we used only one icmp, don't turn it into a switch.

Also prevent the switch-to-icmp transform from creating identity adds, noticed by Marius Wachtler.

llvm-svn: 125056
parent 36dd43fd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment