[PATCH] D18614: Add TargetMachine::addEarlyAsPossiblePasses.
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 27 10:55:42 PDT 2016
rnk added a subscriber: rnk.
rnk added a comment.
Shouldn't this patch also modify the pass pipeline to call this hook at some point?
================
Comment at: include/llvm/Target/TargetMachine.h:220-221
@@ -219,1 +219,4 @@
+ /// Add target-specific function passes that should be run as early as
+ /// possible -- before most machine-independent IR passes. Most
+ /// TargetMachines have no such passes.
----------------
Maybe this should say "before all mid-level optimization passes". I initially assumed you wanted this to run before IR-level codegen passes (CodeGenPrepare, LSR, etc), but that's what we have today.
http://reviews.llvm.org/D18614
More information about the llvm-commits
mailing list