Chromium Code Reviews
Descriptiondart2js: Redo known-type analysis after load-elimination
Code like
if (this.field is X) {
(this.field as X)...
}
after GVN and/or load-elimination becomes
t1 = this.field;
if (t1 is X) {
(t1 as X)...
}
so it is worth redoing the analysis that allows the elimination of
guaranteed-to-succeed 'as' check. About 5% of the as-checks in a
large app are optimized out with this change.
R=sigmund@google.com
Committed: https://github.com/dart-lang/sdk/commit/8b1f285c69e927146259adcaadb07e36d3829d44
Patch Set 1 #Patch Set 2 : fix comment #Messages
Total messages: 5 (2 generated)
|