This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix CSE volatile MEM handling (PR rtl-optimization/64756)


> 2015-02-02  Jakub Jelinek  <jakub@redhat.com>
> 
> 	PR rtl-optimization/64756
> 	* cse.c (cse_insn): If dest != SET_DEST (sets[i].rtl) and
> 	HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
> 	invalidate and do not record it.
> 
> 	* gcc.c-torture/execute/pr64756.c: New test.

OK if you factor out the common code with the similar block for 'dest' above 
into an invalidate_dest function (note that the MEM_P case is identical to the 
REG_P and SUBREG cases) and invoke it on 'dest' and SET_DEST (sets[i].rtl).

-- 
Eric Botcazou


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]