[llvm-dev] debug the LLVM instcombine pass

陳韋任 via llvm-dev llvm-dev at lists.llvm.org
Fri May 19 07:03:22 PDT 2017


Do you set breakpoint on `InstructionCombiningPass::runOnFunction`, or
other functions?
Note InstCombine might not be done as some functions could be skipped.

    bool InstructionCombiningPass::runOnFunction(Function &F) {
      if (skipFunction(F))
     return false;

HTH,
chenwj


2017-05-19 6:50 GMT+08:00 Wei Ding via llvm-dev <llvm-dev at lists.llvm.org>:

> Hi,
>
> Anybody knows how to debug the instcombine pass? I tried to debug "opt
> -instcombine", but looks like I am still not able to step into codes. Any
> comments are greatly appreciated here. Thanks!
>
> --
> Wei Ding
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>


-- 
Wei-Ren Chen (陳韋任)
Homepage: https://people.cs.nctu.edu.tw/~chenwj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170519/f8506a85/attachment.html>


More information about the llvm-dev mailing list