[PATCH] Add a callback to FunctionPass to enable skipping execution on a per-function basis

Akira Hatanaka ahatanak at gmail.com
Thu Apr 9 14:40:19 PDT 2015


Here is the updated patch.

In addition to making changes necessary to pass the predicate to the passes' constructors, I moved the piece of code in lib/CodeGen/Passes.cpp which adds passes in InsertedPasses to the pass pipeline. This change was necessary to enable inserting the machineinstr-printer pass via command line option -print-machineinstrs (two tests, CodeGen/ARM/ifcvt-branch-weight-bug.ll and ifcvt-branch-weight.ll, fail without this change).


http://reviews.llvm.org/D8717

Files:
  include/llvm/CodeGen/Passes.h
  include/llvm/Pass.h
  include/llvm/Transforms/Scalar.h
  lib/CodeGen/IfConversion.cpp
  lib/CodeGen/MachineInstrBundle.cpp
  lib/CodeGen/Passes.cpp
  lib/Target/ARM/ARM.h
  lib/Target/ARM/ARMTargetMachine.cpp
  lib/Target/ARM/Thumb2SizeReduction.cpp
  lib/Transforms/Scalar/SimplifyCFGPass.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8717.23532.patch
Type: text/x-patch
Size: 12961 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150409/d8fe61e5/attachment.bin>


More information about the llvm-commits mailing list