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: [tree-ssa] Fix problem with loop notes emitted by targets


> Hello,
> 
> some targets (s390, maybe other) produce loops when expanding
> builtins; this causes problems as create_loop_notes does not like
> the notes created by them.  This patch makes the functions that expand
> loops work without creating the notes.  It also removes
> NOTE_INSN_LOOP_CONT, since it is not produced anywhere.

There are some parts of loop.c that rely on presence of LOOP_CONT (such
as dbra code) If we want to save them, we can simply emit LOOP_CONT note
at the beggining of latch basic block (or more aggressivly a superblock).

Honza


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