freebsd-skq/lib/Analysis
2009-11-18 14:58:34 +00:00
..
IPA Update LLVM to r89205. 2009-11-18 14:58:34 +00:00
AliasAnalysis.cpp Update LLVM to r86025. 2009-11-04 14:58:56 +00:00
AliasAnalysisCounter.cpp Update LLVM to r86025. 2009-11-04 14:58:56 +00:00
AliasAnalysisEvaluator.cpp Update LLVM to r86025. 2009-11-04 14:58:56 +00:00
AliasDebugger.cpp Update LLVM to r86025. 2009-11-04 14:58:56 +00:00
AliasSetTracker.cpp Update LLVM to r86025. 2009-11-04 14:58:56 +00:00
Analysis.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
BasicAliasAnalysis.cpp Update LLVM to r89205. 2009-11-18 14:58:34 +00:00
CaptureTracking.cpp Update LLVM to r86025. 2009-11-04 14:58:56 +00:00
CFGPrinter.cpp Update LLVM to r86025. 2009-11-04 14:58:56 +00:00
CMakeLists.txt Update LLVM to r89205. 2009-11-18 14:58:34 +00:00
ConstantFolding.cpp Update LLVM to r89205. 2009-11-18 14:58:34 +00:00
DbgInfoPrinter.cpp Update LLVM to r86025. 2009-11-04 14:58:56 +00:00
DebugInfo.cpp Update LLVM to r89205. 2009-11-18 14:58:34 +00:00
DomPrinter.cpp Update LLVM to r84949. 2009-10-23 14:19:52 +00:00
InlineCost.cpp Update LLVM to r86025. 2009-11-04 14:58:56 +00:00
InstCount.cpp Update LLVM to r86025. 2009-11-04 14:58:56 +00:00
InstructionSimplify.cpp Update LLVM to r89205. 2009-11-18 14:58:34 +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 r89205. 2009-11-18 14:58:34 +00:00
LazyValueInfo.cpp Update LLVM to r89205. 2009-11-18 14:58:34 +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 Update LLVM to r89205. 2009-11-18 14:58:34 +00:00
LoopDependenceAnalysis.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
LoopInfo.cpp Update LLVM to r89205. 2009-11-18 14:58:34 +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
MemoryBuiltins.cpp Update LLVM to r89205. 2009-11-18 14:58:34 +00:00
MemoryDependenceAnalysis.cpp Update LLVM to r86025. 2009-11-04 14:58:56 +00:00
PointerTracking.cpp Update LLVM to r89205. 2009-11-18 14:58:34 +00:00
PostDominators.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
ProfileEstimatorPass.cpp Update LLVM to r86025. 2009-11-04 14:58:56 +00:00
ProfileInfo.cpp Update LLVM to r86025. 2009-11-04 14:58:56 +00:00
ProfileInfoLoader.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
ProfileInfoLoaderPass.cpp Update LLVM to r86025. 2009-11-04 14:58:56 +00:00
ProfileVerifierPass.cpp Update LLVM to r86025. 2009-11-04 14:58:56 +00:00
README.txt Update llvm to r84119. 2009-10-14 17:57:32 +00:00
ScalarEvolution.cpp Update LLVM to r89205. 2009-11-18 14:58:34 +00:00
ScalarEvolutionAliasAnalysis.cpp Update LLVM to r86025. 2009-11-04 14:58:56 +00:00
ScalarEvolutionExpander.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
SparsePropagation.cpp Update LLVM to r86025. 2009-11-04 14:58:56 +00:00
Trace.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
ValueTracking.cpp Update LLVM to r89205. 2009-11-18 14:58:34 +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.

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