diff options
author | Maxim Kuvyrkov <maxim@codesourcery.com> | 2010-07-27 19:36:31 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim@codesourcery.com> | 2010-07-27 19:36:31 +0000 |
commit | 2c7cb5131dbcf0a552b05bca1ba33423e787d8b4 (patch) | |
tree | 7ca50581c77bd37d8f8718282819457b794be6dc /gcc/gcse.c | |
parent | e036e8dbf2262386f8497ad9b18a91bcbbf86c7d (diff) |
* gcse.c (hoist_code): Generate new pseudo for every new set insn.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@162591 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r-- | gcc/gcse.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c index 4b2547c3367..812cc0a888d 100644 --- a/gcc/gcse.c +++ b/gcc/gcse.c @@ -4581,8 +4581,12 @@ hoist_code (void) /* Create a pseudo-reg to store the result of reaching expressions into. Get the mode for the new pseudo - from the mode of the original destination pseudo. */ - if (expr->reaching_reg == NULL) + from the mode of the original destination pseudo. + + It is important to use new pseudos whenever we + emit a set. This will allow reload to use + rematerialization for such registers. */ + if (!insn_inserted_p) expr->reaching_reg = gen_reg_rtx_and_attrs (SET_DEST (set)); |