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

Issue 1272823004: Subzero: Fix an Om1 crash from memset lowering. (Closed)

Created:
5 years, 4 months ago by Jim Stichnoth
Modified:
5 years, 4 months ago
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: Fix an Om1 crash from memset lowering. With a certain combination of memset arguments, legalizeToReg() is called but its result is unused. Om1 register allocation does not like this because it sees an infinite-weight variable with a definition but no uses. The simplest fix is to add a fake use. The problem shows up when building spec2k with -Om1. BUG= none R=ascull@google.com Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=f6f9825e8b695d44c6cbd36d16eeb6f20f1b986e

Patch Set 1 #

Patch Set 2 : Add a comment. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -0 lines) Patch
M src/IceTargetLoweringX86BaseImpl.h View 1 1 chunk +4 lines, -0 lines 2 comments Download
M tests_lit/llvm2ice_tests/nacl-mem-intrinsics.ll View 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
Jim Stichnoth
5 years, 4 months ago (2015-08-05 23:11:00 UTC) #2
ascull
lgtm https://codereview.chromium.org/1272823004/diff/20001/src/IceTargetLoweringX86BaseImpl.h File src/IceTargetLoweringX86BaseImpl.h (right): https://codereview.chromium.org/1272823004/diff/20001/src/IceTargetLoweringX86BaseImpl.h#newcode3810 src/IceTargetLoweringX86BaseImpl.h:3810: Context.insert(InstFakeUse::create(Func, Base)); I'm doing some refactoring as I'm ...
5 years, 4 months ago (2015-08-05 23:15:17 UTC) #3
Jim Stichnoth
https://codereview.chromium.org/1272823004/diff/20001/src/IceTargetLoweringX86BaseImpl.h File src/IceTargetLoweringX86BaseImpl.h (right): https://codereview.chromium.org/1272823004/diff/20001/src/IceTargetLoweringX86BaseImpl.h#newcode3810 src/IceTargetLoweringX86BaseImpl.h:3810: Context.insert(InstFakeUse::create(Func, Base)); On 2015/08/05 23:15:16, ascull wrote: > I'm ...
5 years, 4 months ago (2015-08-05 23:22:30 UTC) #4
Jim Stichnoth
5 years, 4 months ago (2015-08-05 23:24:50 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
f6f9825e8b695d44c6cbd36d16eeb6f20f1b986e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698