mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-16 19:16:05 +00:00

This patch peels off the top case in switch statement into a branch if the probability exceeds a threshold. This will help the branch prediction and avoids the extra compares when lowering into chain of branches. Differential Revision: http://reviews.llvm.org/D39262 llvm-svn: 318202