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: Adding custom scheduler dependency between 2 insns


Hi Maxim,

Thanks for the prompt response! I'm using gcc 4.2.0, and couldn't locate
sd_add_dep in sched-deps.c. Is add_dependence () an appropriate
equivalent?

Thanks,
Tomer

-----Original Message-----
From: Maxim Kuvyrkov [mailto:maxim@codesourcery.com] 
Sent: Thursday, November 08, 2007 09:30
To: Tomer Benyamini
Cc: gcc@gcc.gnu.org
Subject: Re: Adding custom scheduler dependency between 2 insns

Tomer Benyamini wrote:
> Hi,
> 
> I was wondering if it is possible to create a dependency between 2
insns
> through a specific scheduler hook (maybe through
> TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK) even though the insns are
not
> really dependent (not really read-after-write etc.). If it is
possible,
> what is the best way to do it?

It sounds to me like you want a dirty hack.  Anyway, call to 
sched-deps.c: sd_add_dep () should be enough.

--
Maxim


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