[llvm-dev] RFC: Pass Execution Instrumentation interface

George Burgess IV via llvm-dev llvm-dev at lists.llvm.org
Thu Jun 14 11:18:28 PDT 2018

FWIW, I was able to use the EarlyCSE debug counters without issue in a
Release build with -DLLVM_ENABLE_ASSERTIONS=Yes. Further, the only
preprocessor checks I see around debug counters use `NDEBUG`. Am I missing

It seems reasonable to me to require that assertions are on when you're
trying to debug the compiler. Not so much to require that the compiler
itself has been built with `-O0` :)

On Wed, Jun 13, 2018 at 1:44 PM David A. Greene via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Fedor Sergeev <fedor.sergeev at azul.com> writes:
> > My problem with debug counters is that they are ... well ...
> > debug-only :)
> > I was planning to use debug counters for the purpose of pass execution
> > counting but then
> > realized that it will not work in Release mode at all.
> >
> > But other than that debug counters seems to be a exactly a machinery
> > designed for opt-in control of internal pass activity.
> Why were debug counters made debug-only in the first place?  We
> certainly use our -pass-max stuff in release builds.  Most of the time a
> debug build is fine but for some codes a debug build is way too slow to
> allow bisecting in a reasonable amount of time.
>                               -David
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180614/80fd6a2a/attachment.html>

More information about the llvm-dev mailing list