[LLVMdev] PassManager again...
Devang Patel
devang.patel at gmail.com
Fri Nov 20 09:29:49 PST 2009
On Fri, Nov 20, 2009 at 6:54 AM, Andreas Neustifter
<astifter-llvm at gmx.at> wrote:
>
> If I use AU.addRequired<ProfileInfo>() in SelectionDAGISel.cpp the
> wrong ProfileInfo is used. It uses the "No ProfileInfo" implementation
> if ProfileInfo but not the one from ProfileInfoLoaderPass. (Which is
> immediately discarded after creation.)
>
You need to debug pass manager yourself in a debugger to understand
why pass manager is discarding ProfileInfoLoaderPass. Usually it is
because
1) The pass manager does not know of any user of your pass - If that's
not the case then find out why? This may be a bug.
2) Someone is not preserving this pass. If that's the case then who is
it? Is it explicitly claiming to preserve your pass ?
-
Devang
More information about the llvm-dev
mailing list