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

Issue 114613003: double * int returns a double can be simplified to an int if both operands are constants. Therefore… (Closed)

Created:
7 years ago by ngeoffray
Modified:
7 years ago
Reviewers:
floitsch
CC:
reviews_dartlang.org
Visibility:
Public.

Description

double * int returns a double can be simplified to an int if both operands are constants. Therefore the optimization in the instruction simplified to narrow the type should not be done for numbers, or we would end up using an empty type. R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=31266

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -6 lines) Patch
M sdk/lib/_internal/compiler/implementation/ssa/builder.dart View 1 1 chunk +5 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/nodes.dart View 1 1 chunk +6 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/ssa/optimize.dart View 1 chunk +13 lines, -5 lines 0 comments Download
A tests/language/issue15702_test.dart View 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
ngeoffray
7 years ago (2013-12-18 18:46:41 UTC) #1
floitsch
LGTM.
7 years ago (2013-12-18 19:03:25 UTC) #2
ngeoffray
7 years ago (2013-12-19 12:44:01 UTC) #3
Message was sent while issue was closed.
Committed patchset #2 manually as r31266 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698