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

Issue 2295393002: Subzero: Deterministically sort local var stack offsets. (Closed)

Created:
4 years, 3 months ago by Jim Stichnoth
Modified:
4 years, 3 months ago
Reviewers:
Eric Holk, Karl, John
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Subzero: Deterministically sort local var stack offsets. Currently, TargetLowering::sortVarsByAlignment() uses the variable's required alignment as the primary key, but then std::sort() breaks ties arbitrarily. This can give different results across different STL implementations, for example when building against LLVM trunk versus building in the PNaCl environment. The fix is to use Variable::Number as the secondary key. BUG= none R=kschimpf@google.com Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=53dae72a05ab4e1c2f241fd6027a7ad1050843bd

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -2 lines) Patch
M src/IceTargetLowering.cpp View 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (4 generated)
Jim Stichnoth
4 years, 3 months ago (2016-08-31 21:05:21 UTC) #4
Karl
lgtm
4 years, 3 months ago (2016-08-31 21:12:37 UTC) #5
Jim Stichnoth
4 years, 3 months ago (2016-08-31 22:32:36 UTC) #7
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
53dae72a05ab4e1c2f241fd6027a7ad1050843bd (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698