commit | fdefc694cd20958bbeb10bd66767fda371452c7c | [log] [tgz] |
---|---|---|
author | Sanjoy Das <sanjoy@playingwithpointers.com> | Tue Jan 27 21:38:12 2015 +0000 |
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | Tue Jan 27 21:38:12 2015 +0000 |
tree | f61983d610acf8a7a3534832541443fc94cace8d | |
parent | 00b7a940e71ed6550a32fc69a5f11840a48ace64 [diff] |
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227249 91177308-0d34-0410-b5e6-96231b3b80d8