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

Issue 943273004: Fold BIT_NOT and NEGATE during constant propagation. (Closed)

Created:
5 years, 10 months ago by Vyacheslav Egorov (Google)
Modified:
5 years, 10 months ago
Reviewers:
Florian Schneider
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fold BIT_NOT and NEGATE during constant propagation. Convert (a & 2^n) == 2^n into TestSmi instruction. R=fschneider@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=43957

Patch Set 1 #

Patch Set 2 : Add tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -29 lines) Patch
M runtime/vm/constant_propagator.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/constant_propagator.cc View 1 chunk +18 lines, -9 lines 0 comments Download
M runtime/vm/intermediate_language.h View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language.cc View 4 chunks +79 lines, -13 lines 0 comments Download
M tests/language/vm/optimized_testsmi_test.dart View 1 2 chunks +33 lines, -7 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
Vyacheslav Egorov (Google)
5 years, 10 months ago (2015-02-23 12:29:46 UTC) #1
Florian Schneider
LGTM if you add test coverage for the new pattern.
5 years, 10 months ago (2015-02-23 12:51:50 UTC) #2
Vyacheslav Egorov (Google)
5 years, 10 months ago (2015-02-23 14:53:15 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as 43957 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698