Fix overflow check in unroll cost calculation
authorJoseph Tremoulet <jotrem@microsoft.com>
Thu, 17 Nov 2016 23:18:35 +0000 (15:18 -0800)
committerJoseph Tremoulet <jotrem@microsoft.com>
Mon, 21 Nov 2016 16:52:13 +0000 (08:52 -0800)
commit40bdd215764788bf1e4442c14900210255915a34
treeb6cc41de923cab142a05b9fb215e7c99eac678d1
parent71f3a03cf9019b03d1c69438a034e3bfb426cb41
Fix overflow check in unroll cost calculation

Perform the subtraction on signed rather than unsigned ints; if the unroll
size is actually smaller than the fixed size estimate, unrolling is
profitable.
src/jit/optimizer.cpp