diff options
author | Elliott Hughes <enh@google.com> | 2010-04-28 16:15:38 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2010-04-28 16:20:36 -0700 |
commit | 2d5ab32dbeb2c0670f445ec0e9591249ab4f3e91 (patch) | |
tree | 82fccb188cc82b22fe4569d589275a7f54990fe6 /include/ScopedJavaUnicodeString.h | |
parent | f21aa2653c0a289b6000402d44fa559a4ca3493c (diff) |
Optimize rem-int/lit too.
Bryan hitting the bug in my div-int/lit optimization (that caused it to
try to rewrite rem-int/lit too) shows that I was wrong in assuming % wasn't
worth doing because it wouldn't be hot enough.
Before:
benchmark ns logarithmic runtime
RemainderIntByConstant2 44 XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
RemainderIntByConstant2048 34 XXXXXXXXXXXXXXXXXXXXXX|||||
RemainderIntByConstant8 44 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
RemainderIntByVariable2 40 XXXXXXXXXXXXXXXXXXXXXXXXXXX||
After:
benchmark ns logarithmic runtime
RemainderIntByConstant2 13 XXXXXXXXX|||||||||||
RemainderIntByConstant2048 16 XXXXXXXXXXXX||||||||||
RemainderIntByConstant8 16 XXXXXXXXXXXX||||||||||
RemainderIntByVariable2 40 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Bug: 2614702
Change-Id: I719fc8765feececd5b73c3cb2e44dd3cf20c45ce
Diffstat (limited to 'include/ScopedJavaUnicodeString.h')
0 files changed, 0 insertions, 0 deletions