summaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
authorkugan <kugan@138bc75d-0d04-0410-961f-82ee72b054a4>2015-07-12 11:16:30 +0000
committerkugan <kugan@138bc75d-0d04-0410-961f-82ee72b054a4>2015-07-12 11:16:30 +0000
commitf2c7e335b68845d4b1f466ed4f631e819b71016b (patch)
tree6635ab0b12302db27b1fd7effdbb88af0fd00813 /gcc/emit-rtl.c
parent87d80760129d70b2fed2cc032b3238682c0888f0 (diff)
downloadgcc-f2c7e335b68845d4b1f466ed4f631e819b71016b.tar.gz
gcc/ChangeLog:
2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org> * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT. * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set REG_EQUAL note. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225721 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r--gcc/emit-rtl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index 93dd4595ed0..ed2b30b17ee 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -5221,7 +5221,8 @@ set_for_reg_notes (rtx insn)
reg = SET_DEST (pat);
/* Notes apply to the contents of a STRICT_LOW_PART. */
- if (GET_CODE (reg) == STRICT_LOW_PART)
+ if (GET_CODE (reg) == STRICT_LOW_PART
+ || GET_CODE (reg) == ZERO_EXTRACT)
reg = XEXP (reg, 0);
/* Check that we have a register. */