[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.

Repository:
  rL LLVM

http://reviews.llvm.org/D15776

Files:
  include/llvm/Pass.h
  lib/Analysis/CallGraphSCCPass.cpp
  lib/Analysis/LoopPass.cpp
  lib/CodeGen/MachineFunctionPrinterPass.cpp
  lib/IR/IRPrintingPasses.cpp
  lib/IR/LegacyPassManager.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15776.43614.patch
Type: text/x-patch
Size: 5018 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151224/cc98ceb2/attachment.bin>


More information about the llvm-commits mailing list