commit | f6f9825e8b695d44c6cbd36d16eeb6f20f1b986e | [log] [tgz] |
---|---|---|
author | Jim Stichnoth <stichnot@chromium.org> | Wed Aug 05 16:24:45 2015 -0700 |
committer | Jim Stichnoth <stichnot@chromium.org> | Wed Aug 05 16:24:45 2015 -0700 |
tree | 6f392140abf3b450a8762a84a4f09fe66db77669 | |
parent | 552490c2811ae0adcc61a57c36ed43b35a9af2b9 [diff] |
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 Review URL: https://codereview.chromium.org/1272823004.