[PATCH] D49203: [PM] Use getAnalysisIfAvailable / addUsedIfAvailable with StackProtector
Matt Davis via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 11 14:19:00 PDT 2018
mattd added a comment.
@thegameg - Good catch, and thanks for hunting this down.
I'm not a pass manager expert, but since the TargetPassConfig will always add StackProtector for code that is generating IR, this seems ok to me. Is there not a way to get MF passes to express a required dependency on an IR analysis pass, I'm guessing not since llc only really deals with lower level machine passes. Perhaps a more helpful diagnostic could have made locating this issue easier "Machine Function pass is dependent on a IR pass that cannot be generated."
https://reviews.llvm.org/D49203
More information about the llvm-commits
mailing list