[PATCH] Teach IRCE to look at branch weights when recognizing range checks
sanjoy at playingwithpointers.com
Mon Jan 26 22:21:38 PST 2015
Hi reames, hfinkel,
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).
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 10082 bytes
Desc: not available
More information about the llvm-commits