freebsd-dev/lib/Analysis
2010-04-03 07:51:10 +00:00
..
IPA Update LLVM to r100285. 2010-04-03 07:51:10 +00:00
AliasAnalysis.cpp Update LLVM to 93512. 2010-01-15 15:37:28 +00:00
AliasAnalysisCounter.cpp Update LLVM to 97654. 2010-03-03 17:27:15 +00:00
AliasAnalysisEvaluator.cpp Update LLVM to 97654. 2010-03-03 17:27:15 +00:00
AliasDebugger.cpp Update LLVM to r94309. 2010-01-23 11:09:33 +00:00
AliasSetTracker.cpp Update LLVM to 92395. 2010-01-01 10:31:22 +00:00
Analysis.cpp Update LLVM to 93512. 2010-01-15 15:37:28 +00:00
BasicAliasAnalysis.cpp Update LLVM to 97654. 2010-03-03 17:27:15 +00:00
CaptureTracking.cpp Update LLVM to r100181. 2010-04-02 08:54:30 +00:00
CFGPrinter.cpp Update LLVM to r86025. 2009-11-04 14:58:56 +00:00
CMakeLists.txt Update LLVM to 91430. 2009-12-15 18:09:07 +00:00
ConstantFolding.cpp Update LLVM to r99115. 2010-03-21 10:49:05 +00:00
DbgInfoPrinter.cpp Update LLVM to 93512. 2010-01-15 15:37:28 +00:00
DebugInfo.cpp Update LLVM to r100285. 2010-04-03 07:51:10 +00:00
DomPrinter.cpp Update LLVM to r94309. 2010-01-23 11:09:33 +00:00
InlineCost.cpp Update LLVM to r100181. 2010-04-02 08:54:30 +00:00
InstCount.cpp Update LLVM to 92395. 2010-01-01 10:31:22 +00:00
InstructionSimplify.cpp Update LLVM to r97873. 2010-03-06 09:22:29 +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 97654. 2010-03-03 17:27:15 +00:00
LazyValueInfo.cpp Update LLVM to 92395. 2010-01-01 10:31:22 +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 r100181. 2010-04-02 08:54:30 +00:00
LoopDependenceAnalysis.cpp Update LLVM to r99115. 2010-03-21 10:49:05 +00:00
LoopInfo.cpp Update LLVM to r98631. 2010-03-16 16:51:38 +00:00
LoopPass.cpp Update LLVM to r100285. 2010-04-03 07:51:10 +00:00
Makefile Update LLVM to r96341. 2010-02-16 09:30:23 +00:00
MemoryBuiltins.cpp Update LLVM to r100181. 2010-04-02 08:54:30 +00:00
MemoryDependenceAnalysis.cpp Update LLVM to 97654. 2010-03-03 17:27:15 +00:00
PHITransAddr.cpp Update LLVM to 97654. 2010-03-03 17:27:15 +00:00
PointerTracking.cpp Update LLVM to 97654. 2010-03-03 17:27:15 +00:00
PostDominators.cpp Update LLVM to 92395. 2010-01-01 10:31:22 +00:00
ProfileEstimatorPass.cpp Update LLVM to r100181. 2010-04-02 08:54:30 +00:00
ProfileInfo.cpp Update LLVM to r100181. 2010-04-02 08:54:30 +00:00
ProfileInfoLoader.cpp Update llvm to r84119. 2009-10-14 17:57:32 +00:00
ProfileInfoLoaderPass.cpp Update LLVM to r100181. 2010-04-02 08:54:30 +00:00
ProfileVerifierPass.cpp Update LLVM to r100181. 2010-04-02 08:54:30 +00:00
README.txt Update llvm to r84119. 2009-10-14 17:57:32 +00:00
ScalarEvolution.cpp Update LLVM to r99115. 2010-03-21 10:49:05 +00:00
ScalarEvolutionAliasAnalysis.cpp Update LLVM to 97654. 2010-03-03 17:27:15 +00:00
ScalarEvolutionExpander.cpp Update LLVM to r100181. 2010-04-02 08:54:30 +00:00
SparsePropagation.cpp Update LLVM to 92395. 2010-01-01 10:31:22 +00:00
Trace.cpp Update LLVM to 92395. 2010-01-01 10:31:22 +00:00
ValueTracking.cpp Update LLVM to r98631. 2010-03-16 16:51:38 +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.

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