This is the mail archive of the gcc@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: branch delay slots


Am 12.12.2007 um 16:21 schrieb Ian Lance Taylor:

Boris Boesler <baembel@gmx.de> writes:

  I "implemented" branch delay slots (define_delay) for my
architecture and I use the command line option -fdelayed-branch. But
branch delay slot filling is done just for a few candidates. Even for
the same rule within the same compilation unit (C file) it is done in
a few cases but not in all. How can this happen?

There are many possible reasons. The first step is to look at the dump file generated by -fdump-rtl-dbr.

Could have thought of this myself ..


Ok, I think I found it: GCC leaves control-flow operations as they are, if it can not place other operations in branch delay slots (represented as SEQUENCEs in GCC); or in other words: GCC does not represent empty delay slots.

Is this correct?

Boris


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