[llvm-dev] Finding which optimization passes have failed

Bekket McClane via llvm-dev llvm-dev at lists.llvm.org
Sun Nov 18 20:14:26 PST 2018



> On Nov 17, 2018, at 8:20 AM, Pradeep Kumar via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> Dear LLVM community,
>    How to find out which optimization passes have been performed and which passes have failed?

First please define “failed”. 
If you mean “crash”, there will be a stack dump anyway.
If you mean failed to optimize the code(into better code for example), the opt option “-print-after-all” might help you, it would print the result IR after each optimization passes.

Regarding which optimization do clang run, clang option “-mllvm -debug-pass=Arguments” might be the thing you’re looking for

Bests,
Bekket
> 
> Regards,
> Pradeep Kumar
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev



More information about the llvm-dev mailing list