[llvm] r367793 - [Attributor][NFC] Create some attributes earlier
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 4 11:40:01 PDT 2019
Author: jdoerfert
Date: Sun Aug 4 11:40:01 2019
New Revision: 367793
URL: http://llvm.org/viewvc/llvm-project?rev=367793&view=rev
Log:
[Attributor][NFC] Create some attributes earlier
Modified:
llvm/trunk/lib/Transforms/IPO/Attributor.cpp
Modified: llvm/trunk/lib/Transforms/IPO/Attributor.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/Attributor.cpp?rev=367793&r1=367792&r2=367793&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/Attributor.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/Attributor.cpp Sun Aug 4 11:40:01 2019
@@ -2488,6 +2488,12 @@ void Attributor::identifyDefaultAbstract
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::identifyDefaultAbstract
}
}
- // 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.
More information about the llvm-commits
mailing list