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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170518/306c8430/attachment.html>
Do you have a DEBUG build ? -Xin -- Software Engineer - Compiler Toolchain Employee of Facebook Inc. On Fri, May 19, 2017 at 7:50 AM, Wei Ding via llvm-dev <llvm-dev at lists.llvm.org> wrote:> 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 >
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>