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: [path] PR 54900: store data race in if-conversion pass



I don't see a reason to add this new function.  I would just inline it
into noce_can_store_speculate_p, replacing the call to
memory_modified_in_p.  And I'm not sure I see a reason to change the
comment for memory_modified_in_p, it seems to already be accurate.

My comment was just clearer to me, but probably because I wrote it :). I have revert it.



Clearly we could consider the possibility of a PARALLEL of SET insns, but of course most the compiler won't handle that anyhow. I suppose that would be a reason to use memory_surely_modified_in_insn_p, but in that case you might as well handle the PARALLEL case now.

Done. Is this what you had in mind?


Tested on x86-64 Linux by looking at the generated assembly for the testcase with a dominating write and without. Bootstrap and regtested as well.

Attachment: curr
Description: Text document


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