DescriptionSubzero: 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 #
Messages
Total messages: 7 (4 generated)
|