Yes, that makes sense. Passing the predicate lambda to the pass's constructor seems like a much simpler approach than passing it to addPass. http://reviews.llvm.org/D8717 EMAIL PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/