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

2015-02-03 Thread Eric Botcazou
> 2015-02-02 Jakub Jelinek > > 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

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

2015-02-02 Thread Jakub Jelinek
Hi! We miscompile the following testcase, because first we add a mem/v into the hash table (which should not happen), later on during merge_equiv_classes a new element for that mem/v is added and doesn't even have in_memory set (because HASH failed with do_not_record but nothing checked it) and la