[PATCH] D15776: [RFC] Selectively print functions for print-after-all/print-before-all
Weiming Zhao via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 24 12:19:10 PST 2015
weimingz created this revision.
weimingz added a subscriber: llvm-commits.
weimingz set the repository for this revision to rL LLVM.
Herald added a subscriber: joker.eph.
Recently, I debugged some mis-compilation bug exposed with LTO. I knew which function was mis-compiled but I didn't know which transformation caused the issue.
I run -print-after-all but after several hours and generating 1 GB log file, it was still running. So I patched LLVM to let it accept an option to print out only specified function and it worked very well for me. (finished in 20 seconds to print out my interested function)
I think this feature might be useful to other developers.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5018 bytes
Desc: not available
More information about the llvm-commits