Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(472)

Issue 9950014: Eliminate branches on constant conditions during codegen. (Closed)

Created:
8 years, 8 months ago by ahe
Modified:
8 years, 8 months ago
CC:
reviews_dartlang.org, compiler-dev_dartlang.org
Visibility:
Public.

Description

Eliminate branches on constant conditions during codegen. Committed: https://code.google.com/p/dart/source/detail?r=6033

Patch Set 1 #

Total comments: 7

Patch Set 2 : Remove disable code #

Patch Set 3 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -15 lines) Patch
M dart/lib/compiler/implementation/ssa/codegen.dart View 1 2 1 chunk +28 lines, -15 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
ahe
Saves 10% output size of stress test (only 4% without speculative optimizations).
8 years, 8 months ago (2012-03-30 12:48:50 UTC) #1
Lasse Reichstein Nielsen
LGTM https://chromiumcodereview.appspot.com/9950014/diff/1/dart/lib/compiler/implementation/ssa/codegen.dart File dart/lib/compiler/implementation/ssa/codegen.dart (right): https://chromiumcodereview.appspot.com/9950014/diff/1/dart/lib/compiler/implementation/ssa/codegen.dart#newcode906 dart/lib/compiler/implementation/ssa/codegen.dart:906: int preVisitedBlocks = 1; I'd actually prefer to ...
8 years, 8 months ago (2012-03-30 12:56:02 UTC) #2
ahe
8 years, 8 months ago (2012-03-30 13:15:52 UTC) #3
Thank you, Lasse.

https://chromiumcodereview.appspot.com/9950014/diff/1/dart/lib/compiler/imple...
File dart/lib/compiler/implementation/ssa/codegen.dart (right):

https://chromiumcodereview.appspot.com/9950014/diff/1/dart/lib/compiler/imple...
dart/lib/compiler/implementation/ssa/codegen.dart:906: int preVisitedBlocks = 1;
On 2012/03/30 12:56:02, Lasse Reichstein Nielsen wrote:
> I'd actually prefer to initialize it to zero, and only set it to 1 or 2 (or
> increment it) after *actually* visiting the block.

Done.

https://chromiumcodereview.appspot.com/9950014/diff/1/dart/lib/compiler/imple...
dart/lib/compiler/implementation/ssa/codegen.dart:909: if (false &&
condition.isConstant()) {
On 2012/03/30 12:56:02, Lasse Reichstein Nielsen wrote:
> "false &&"?

Done.

Powered by Google App Engine
This is Rietveld 408576698