summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2015-01-27 21:38:12 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2015-01-27 21:38:12 +0000
commitdcf2651043caef440b8b542ba5f6945916a96b72 (patch)
treee2c7541f244ae4491aaa4e41cbb17807ad167a9d /llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
parent533948088e4aa8c433827a23dcfd522b800d892f (diff)
downloadbcm5719-llvm-dcf2651043caef440b8b542ba5f6945916a96b72.tar.gz
bcm5719-llvm-dcf2651043caef440b8b542ba5f6945916a96b72.zip
Teach IRCE to look at branch weights when recognizing range checks
Splitting a loop to make range checks redundant is profitable only if the range check "never" fails. Make this fact a part of recognizing a range check -- a branch is a range check only if it is expected to pass (via branch_weights metadata). Differential Revision: http://reviews.llvm.org/D7192 llvm-svn: 227249
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud