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: Scheduling automaton question


On 02/11/2011 07:43 PM, FrÃdÃric RISS wrote:
> Le vendredi 11 fÃvrier 2011 Ã 13:33 +0100, Bernd Schmidt a Ãcrit :
>> Suppose I have two insns, one reserving (A|B|C), and the other reserving
>> A. I'm observing that when the first one is scheduled in an otherwise
>> empty state, it reserves the A unit and blocks the second one from being
>> scheduled in the same cycle. This is a problem when there's an
>> anti-dependence of cost 0 between the two instructions.
> 
> If you generate a NDFA ( using '(automata_option "ndfa")' ) it should
> allow you to schedule both instructions together as this should try all
> functional unit alternatives. 

Ah, that seems to be exactly what I was looking for. Thanks!
I'd expect this won't work too well with define_query_cpu_unit, so I'll
need another method to assign units after scheduling.


Bernd


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