Chromium Code Reviews
Descriptiontree-ir: Treat getInterceptor and identical as effectively constant.
Calls to getInterceptor would often block another expression from
propagating, which in turn can block other optimizations.
Before:
while (true) {
v0 = foo();
if (P.identical(J.getInterceptor$n(i).$lt(i, v0), true)) { S1 }
else { S2 [no continue] }
The call to J.getInterceptor prevents v0 = foo() from inlining.
After:
while(P.identical(J.getInterceptor$n(i).$lt(i, foo()), true)) {
S1
}
S2
BUG=
R=kmillikin@google.com
Committed: https://code.google.com/p/dart/source/detail?r=45161
Patch Set 1 #
Total comments: 1
Patch Set 2 : Update test cases #
Messages
Total messages: 4 (1 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||