aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorRong Xu <xur@google.com>2017-11-14 21:44:09 +0000
committerRong Xu <xur@google.com>2017-11-14 21:44:09 +0000
commit3573d8da3657ac62b4ebe2c385c5e6aad99f1fe6 (patch)
treeb4f9f963bfafc0d42918189ba81ac965838218e9 /llvm/lib/Transforms/Utils/Local.cpp
parent7007f07664dcb92bd9467d7d7cbbbc34cadcba65 (diff)
downloadllvm-3573d8da3657ac62b4ebe2c385c5e6aad99f1fe6.zip
llvm-3573d8da3657ac62b4ebe2c385c5e6aad99f1fe6.tar.gz
llvm-3573d8da3657ac62b4ebe2c385c5e6aad99f1fe6.tar.bz2
[CodeGen] Peel off the dominant case in switch statement in lowering
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
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions