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

Issue 2318043002: [arm64] Use CMN for cmp(a,sub(0,b)) only when checking equality/inequality. (Closed)

Created:
4 years, 3 months ago by georgia.kouveli
Modified:
4 years, 3 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[arm64] Use CMN for cmp(a,sub(0,b)) only when checking equality/inequality. We were previously incorrectly changing: sub r0, 0, r1 cmp r2, r0 b.cond <addr> to: cmn r2, r1 b.cond <addr> for all conditions. This is incorrect for conditions involving the C (carry) and V (overflow) flags, and in particular in the case where r1 = INT_MIN. The optimization is still safe to perform for Equal and NotEqual since they do not depend on the C and V flags. BUG= Committed: https://crrev.com/fdb0f07887ef70fa8e5fbb077d75687eb4b0aebe Cr-Commit-Position: refs/heads/master@{#39246}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -5 lines) Patch
M src/compiler/arm64/instruction-selector-arm64.cc View 1 chunk +4 lines, -1 line 0 comments Download
A test/mjsunit/compiler/regress-compare-negate.js View 1 chunk +18 lines, -0 lines 0 comments Download
M test/unittests/compiler/arm64/instruction-selector-arm64-unittest.cc View 4 chunks +13 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
georgia.kouveli
4 years, 3 months ago (2016-09-07 10:29:46 UTC) #2
epertoso
lgtm thanks!
4 years, 3 months ago (2016-09-07 11:45:28 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2318043002/1
4 years, 3 months ago (2016-09-07 12:19:19 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-07 12:42:13 UTC) #6
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 12:43:10 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/fdb0f07887ef70fa8e5fbb077d75687eb4b0aebe
Cr-Commit-Position: refs/heads/master@{#39246}

Powered by Google App Engine
This is Rietveld 408576698