diff options
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/IPO/Attributor.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp index 45db73028dd..cea8cffa5c6 100644 --- a/llvm/lib/Transforms/IPO/Attributor.cpp +++ b/llvm/lib/Transforms/IPO/Attributor.cpp @@ -2488,6 +2488,12 @@ void Attributor::identifyDefaultAbstractAttributes( Function &F, InformationCache &InfoCache, DenseSet</* Attribute::AttrKind */ unsigned> *Whitelist) { + // Check for dead BasicBlocks in every function. + registerAA(*new AAIsDeadFunction(F, InfoCache)); + + // Every function might be "will-return". + registerAA(*new AAWillReturnFunction(F, InfoCache)); + // Every function can be nounwind. registerAA(*new AANoUnwindFunction(F, InfoCache)); @@ -2542,12 +2548,6 @@ void Attributor::identifyDefaultAbstractAttributes( } } - // Every function might be "will-return". - registerAA(*new AAWillReturnFunction(F, InfoCache)); - - // Check for dead BasicBlocks in every function. - registerAA(*new AAIsDeadFunction(F, InfoCache)); - // Walk all instructions to find more attribute opportunities and also // interesting instructions that might be queried by abstract attributes // during their initialization or update. |

