Commit Graph

366 Commits

Author SHA1 Message Date
Michael Gottesman
bc8b8a521d Ensure that all uses of DisableAliasAnalysis are also conditionally compiled out when not compiling with Debug.
Swift SVN r13669
2014-02-08 00:56:56 +00:00
Michael Gottesman
d75da69b2f [sil-aa] Compile out DisableAliasAnalysis flag when not building Debug. Put in a comment making it clear that it should be removed once AA bringup is complete.
Swift SVN r13664
2014-02-08 00:07:13 +00:00
Michael Gottesman
2576075210 [sil-aa] Change disable-aa to be a hidden argument.
Swift SVN r13661
2014-02-07 23:00:52 +00:00
Michael Gottesman
d8f9e188b0 [sil-aa] Add command line option to turn off alias analysis. This is useful for measuring the effect of AA.
Swift SVN r13660
2014-02-07 22:57:00 +00:00
Michael Gottesman
8cb9693830 [sil-arc-opts] Teach SILARCOpts how to use alias analysis to determine if a store/load could use a value.
Swift SVN r13658
2014-02-07 22:56:59 +00:00
Michael Gottesman
94fb218a5e [sil-aa] Two SILValues that are the same without any stripping trivially alias each other.
Swift SVN r13609
2014-02-07 00:21:40 +00:00
Michael Gottesman
69d738e24c [sil-aa] A SILArgument is only a no-alias SILArgument if it is an argument to the first BB of a function.
Swift SVN r13608
2014-02-07 00:17:42 +00:00
Michael Gottesman
9a297333f9 Enable printing of AliasAnalysis::AliasResult and SILValues.
Swift SVN r13577
2014-02-06 10:06:20 +00:00
Nadav Rotem
0651b9bbd0 Add a new Dominance Analysis that wraps DomInfo and PDomInfo, and migrate the
passes that use them.



Swift SVN r13571
2014-02-06 07:52:16 +00:00
Michael Gottesman
abc9a8d7b6 [sil-aa] Teach SILAA that a SILArgument and something that is identifiable as a local object can not alias.
Swift SVN r13557
2014-02-06 04:31:06 +00:00
Michael Gottesman
d37ba66864 [sil-aa] Change isAllocationInst => isa<AllocationInst>. Remove isAllocationInst since it is dead code.
Swift SVN r13556
2014-02-06 04:31:06 +00:00
Nadav Rotem
d6802340fe Change the CallGraph Analysis API and add cacheing and invalidation methods.
Swift SVN r13554
2014-02-06 04:24:51 +00:00
Michael Gottesman
098fda670f [sil-aa] Change SIL AliasAnalysis into an Analysis.
Swift SVN r13550
2014-02-06 02:29:41 +00:00
Nadav Rotem
93b5cac34e Remove the top-down call graph ABI and use the reverse bottom-up.
Swift SVN r13544
2014-02-06 01:52:14 +00:00
Michael Gottesman
20f2f45703 In light of the new swiftAnalysisLibrary, move lib/SILPasses/Analysis.cpp => lib/SILAnalysis/Analysis.cpp and perform the analogous change for Analysis.h.
Swift SVN r13523
2014-02-05 23:37:36 +00:00
Michael Gottesman
7461dbd70a Now that we have a PM, separate passes from analyses by creating a separate library swiftSILAnalysis and a separate folder/etc.
Swift SVN r13511
2014-02-05 22:17:50 +00:00