llvm-6502/lib/Analysis
Chris Lattner 2decb22222 introduce a new CallGraphSCC class, and pass it around
to CallGraphSCCPass's instead of passing around a
std::vector<CallGraphNode*>.  No functionality change,
but now we have a much tidier interface.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101558 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-16 22:42:17 +00:00
..
IPA introduce a new CallGraphSCC class, and pass it around 2010-04-16 22:42:17 +00:00
AliasAnalysis.cpp
AliasAnalysisCounter.cpp
AliasAnalysisEvaluator.cpp
AliasDebugger.cpp
AliasSetTracker.cpp
Analysis.cpp
BasicAliasAnalysis.cpp reapply r101434 2010-04-16 15:33:14 +00:00
CaptureTracking.cpp
CFGPrinter.cpp
CMakeLists.txt
ConstantFolding.cpp reapply r101434 2010-04-16 15:33:14 +00:00
DbgInfoPrinter.cpp
DebugInfo.cpp
DomPrinter.cpp Remove dead code in the dotty dominance tree printer. 2010-04-12 15:02:19 +00:00
InlineCost.cpp Disable inlining of recursive calls. It can complicate tailcallelim and 2010-04-16 16:01:18 +00:00
InstCount.cpp
InstructionSimplify.cpp
Interval.cpp
IntervalPartition.cpp
IVUsers.cpp
LazyValueInfo.cpp
LibCallAliasAnalysis.cpp
LibCallSemantics.cpp
Lint.cpp
LiveValues.cpp
LoopDependenceAnalysis.cpp
LoopInfo.cpp Fix a bunch of namespace polution. 2010-04-15 17:08:50 +00:00
LoopPass.cpp
Makefile
MemoryBuiltins.cpp reapply r101434 2010-04-16 15:33:14 +00:00
MemoryDependenceAnalysis.cpp reapply r101434 2010-04-16 15:33:14 +00:00
PHITransAddr.cpp
PointerTracking.cpp
PostDominators.cpp Remove unneeded debug in PostDominator runOnFunction() 2010-04-12 15:32:55 +00:00
ProfileEstimatorPass.cpp
ProfileInfo.cpp
ProfileInfoLoader.cpp
ProfileInfoLoaderPass.cpp
ProfileVerifierPass.cpp
README.txt
ScalarEvolution.cpp Fix SCEVCommutativeExpr::print to be robust in the case of improper 2010-04-16 15:03:25 +00:00
ScalarEvolutionAliasAnalysis.cpp
ScalarEvolutionExpander.cpp Fix a bunch of namespace polution. 2010-04-15 17:08:50 +00:00
ScalarEvolutionNormalization.cpp
SparsePropagation.cpp
Trace.cpp
ValueTracking.cpp reapply r101434 2010-04-16 15:33:14 +00:00

Analysis Opportunities:

//===---------------------------------------------------------------------===//

In test/Transforms/LoopStrengthReduce/quadradic-exit-value.ll, the
ScalarEvolution expression for %r is this:

  {1,+,3,+,2}<loop>

Outside the loop, this could be evaluated simply as (%n * %n), however
ScalarEvolution currently evaluates it as

  (-2 + (2 * (trunc i65 (((zext i64 (-2 + %n) to i65) * (zext i64 (-1 + %n) to i65)) /u 2) to i64)) + (3 * %n))

In addition to being much more complicated, it involves i65 arithmetic,
which is very inefficient when expanded into code.

//===---------------------------------------------------------------------===//