freebsd-nq/lib/Analysis
2010-07-15 17:06:11 +00:00
..
IPA Update LLVM to r108243. 2010-07-13 17:19:57 +00:00
AliasAnalysis.cpp Update LLVM to r108243. 2010-07-13 17:19:57 +00:00
AliasAnalysisCounter.cpp Update LLVM to 97654. 2010-03-03 17:27:15 +00:00
AliasAnalysisEvaluator.cpp Update LLVM to r108243. 2010-07-13 17:19:57 +00:00
AliasDebugger.cpp Update LLVM to r108243. 2010-07-13 17:19:57 +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 r108243. 2010-07-13 17:19:57 +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 r108243. 2010-07-13 17:19:57 +00:00
ConstantFolding.cpp Update LLVM to r108243. 2010-07-13 17:19:57 +00:00
DbgInfoPrinter.cpp Update LLVM to 93512. 2010-01-15 15:37:28 +00:00
DebugInfo.cpp Update LLVM to r108243. 2010-07-13 17:19:57 +00:00
DomPrinter.cpp Update LLVM to r108243. 2010-07-13 17:19:57 +00:00
InlineCost.cpp Update LLVM to r108243. 2010-07-13 17:19:57 +00:00
InstCount.cpp Update LLVM to 92395. 2010-01-01 10:31:22 +00:00
InstructionSimplify.cpp Update LLVM to r108428. 2010-07-15 17:06:11 +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 r103004. 2010-05-04 16:11:02 +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
Lint.cpp Update LLVM to r108243. 2010-07-13 17:19:57 +00:00
LiveValues.cpp Update LLVM to r100181. 2010-04-02 08:54:30 +00:00
Loads.cpp Update LLVM to r108243. 2010-07-13 17:19:57 +00:00
LoopDependenceAnalysis.cpp Update LLVM to r99115. 2010-03-21 10:49:05 +00:00
LoopInfo.cpp Update LLVM to r108243. 2010-07-13 17:19:57 +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 r108243. 2010-07-13 17:19:57 +00:00
MemoryDependenceAnalysis.cpp Update LLVM to r108243. 2010-07-13 17:19:57 +00:00
ModuleDebugInfoPrinter.cpp Update LLVM to r104832. 2010-05-27 15:15:58 +00:00
PHITransAddr.cpp Update LLVM to 97654. 2010-03-03 17:27:15 +00:00
PointerTracking.cpp Update LLVM to r103004. 2010-05-04 16:11:02 +00:00
PostDominators.cpp Update LLVM to r108243. 2010-07-13 17:19:57 +00:00
ProfileEstimatorPass.cpp Update LLVM to r100181. 2010-04-02 08:54:30 +00:00
ProfileInfo.cpp Update LLVM to r108428. 2010-07-15 17:06:11 +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 r103004. 2010-05-04 16:11:02 +00:00
ScalarEvolution.cpp Update LLVM to r108243. 2010-07-13 17:19:57 +00:00
ScalarEvolutionAliasAnalysis.cpp Update LLVM to r108243. 2010-07-13 17:19:57 +00:00
ScalarEvolutionExpander.cpp Update LLVM to r108243. 2010-07-13 17:19:57 +00:00
ScalarEvolutionNormalization.cpp Update LLVM to r108243. 2010-07-13 17:19:57 +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 r108243. 2010-07-13 17:19:57 +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.

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

In formatValue in test/CodeGen/X86/lsr-delayed-fold.ll,

ScalarEvolution is forming this expression:

((trunc i64 (-1 * %arg5) to i32) + (trunc i64 %arg5 to i32) + (-1 * (trunc i64 undef to i32)))

This could be folded to

(-1 * (trunc i64 undef to i32))

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