llvm-6502/lib/Analysis
2010-04-16 01:16:20 +00:00
..
IPA back out r101423 and r101397, they break llvm-gcc self-host on darwin10 2010-04-16 01:16:20 +00:00
AliasAnalysis.cpp
AliasAnalysisCounter.cpp
AliasAnalysisEvaluator.cpp
AliasDebugger.cpp
AliasSetTracker.cpp
Analysis.cpp
BasicAliasAnalysis.cpp back out r101423 and r101397, they break llvm-gcc self-host on darwin10 2010-04-16 01:16:20 +00:00
CaptureTracking.cpp
CFGPrinter.cpp
CMakeLists.txt
ConstantFolding.cpp back out r101423 and r101397, they break llvm-gcc self-host on darwin10 2010-04-16 01:16:20 +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 performance: cache the dereferenced use_iterator 2010-04-14 18:13:29 +00:00
InstCount.cpp
InstructionSimplify.cpp
Interval.cpp
IntervalPartition.cpp
IVUsers.cpp Add a cast to void to show that the return value is being 2010-04-11 19:30:19 +00:00
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 back out r101423 and r101397, they break llvm-gcc self-host on darwin10 2010-04-16 01:16:20 +00:00
MemoryDependenceAnalysis.cpp back out r101423 and r101397, they break llvm-gcc self-host on darwin10 2010-04-16 01:16:20 +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 Make getPredecessorWithUniqueSuccessorForBB return the unique successor 2010-04-15 16:19:08 +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 back out r101423 and r101397, they break llvm-gcc self-host on darwin10 2010-04-16 01:16:20 +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.

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