freebsd-nq/lib/Analysis
2009-10-23 14:19:52 +00:00
..
IPA Update LLVM to r84949. 2009-10-23 14:19:52 +00:00
AliasAnalysis.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
AliasAnalysisCounter.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
AliasAnalysisEvaluator.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
AliasDebugger.cpp Import LLVM, at r72732. 2009-06-02 17:52:33 +00:00
AliasSetTracker.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
Analysis.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
BasicAliasAnalysis.cpp Update LLVM to r84949. 2009-10-23 14:19:52 +00:00
CaptureTracking.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
CFGPrinter.cpp Update LLVM to r84949. 2009-10-23 14:19:52 +00:00
CMakeLists.txt Update LLVM to r84949. 2009-10-23 14:19:52 +00:00
ConstantFolding.cpp Update LLVM to r84949. 2009-10-23 14:19:52 +00:00
DbgInfoPrinter.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
DebugInfo.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
DomPrinter.cpp Update LLVM to r84949. 2009-10-23 14:19:52 +00:00
InlineCost.cpp Update LLVM to r84949. 2009-10-23 14:19:52 +00:00
InstCount.cpp Update LLVM to r84949. 2009-10-23 14:19:52 +00:00
Interval.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
IntervalPartition.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
IVUsers.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
LibCallAliasAnalysis.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
LibCallSemantics.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
LiveValues.cpp Import LLVM, at r72732. 2009-06-02 17:52:33 +00:00
LoopDependenceAnalysis.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
LoopInfo.cpp Update LLVM to r84949. 2009-10-23 14:19:52 +00:00
LoopPass.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
Makefile Import LLVM, at r72732. 2009-06-02 17:52:33 +00:00
MallocHelper.cpp Update LLVM to r84949. 2009-10-23 14:19:52 +00:00
MemoryDependenceAnalysis.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
PointerTracking.cpp Update LLVM to r84949. 2009-10-23 14:19:52 +00:00
PostDominators.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
ProfileEstimatorPass.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
ProfileInfo.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
ProfileInfoLoader.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
ProfileInfoLoaderPass.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
ProfileVerifierPass.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
README.txt Update llvm to r84119. 2009-10-14 17:57:32 +00:00
ScalarEvolution.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
ScalarEvolutionAliasAnalysis.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
ScalarEvolutionExpander.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
SparsePropagation.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
Trace.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
ValueTracking.cpp Update LLVM to r84949. 2009-10-23 14:19:52 +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.

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