Home | History | Annotate | only in /external/llvm/lib/Analysis
Up to higher level directory
NameDateSize
AliasAnalysis.cpp04-Nov-201420.3K
AliasAnalysisCounter.cpp04-Nov-20146.2K
AliasAnalysisEvaluator.cpp04-Nov-201413.6K
AliasDebugger.cpp04-Nov-20144.8K
AliasSetTracker.cpp04-Nov-201421.7K
Analysis.cpp04-Nov-20144K
Android.mk04-Nov-20141.9K
BasicAliasAnalysis.cpp04-Nov-201455K
BlockFrequencyInfo.cpp04-Nov-20145.5K
BlockFrequencyInfoImpl.cpp04-Nov-201422.6K
BranchProbabilityInfo.cpp04-Nov-201421.1K
CaptureTracking.cpp04-Nov-20146.8K
CFG.cpp04-Nov-20148.5K
CFGPrinter.cpp04-Nov-20145K
CGSCCPassManager.cpp04-Nov-20145.7K
CMakeLists.txt04-Nov-20141.3K
CodeMetrics.cpp04-Nov-20143.7K
ConstantFolding.cpp04-Nov-201466.9K
CostModel.cpp04-Nov-201417.7K
Delinearization.cpp04-Nov-20144.9K
DependenceAnalysis.cpp04-Nov-2014143.9K
DominanceFrontier.cpp04-Nov-20144.4K
DomPrinter.cpp04-Nov-20147.9K
InstCount.cpp04-Nov-20142.7K
InstructionSimplify.cpp04-Nov-2014123.3K
Interval.cpp04-Nov-20142K
IntervalPartition.cpp04-Nov-20144.2K
IPA/04-Nov-2014
IVUsers.cpp04-Nov-201412.9K
JumpInstrTableInfo.cpp04-Nov-20141.3K
LazyCallGraph.cpp04-Nov-201426.1K
LazyValueInfo.cpp04-Nov-201438.8K
LibCallAliasAnalysis.cpp04-Nov-20145.2K
LibCallSemantics.cpp04-Nov-20142.1K
Lint.cpp04-Nov-201427.3K
LLVMBuild.txt04-Nov-2014742
Loads.cpp04-Nov-20148.6K
LoopInfo.cpp04-Nov-201425K
LoopPass.cpp04-Nov-201411.9K
Makefile04-Nov-2014441
MemDepPrinter.cpp04-Nov-20146.4K
MemoryBuiltins.cpp04-Nov-201428.6K
MemoryDependenceAnalysis.cpp04-Nov-201462.5K
ModuleDebugInfoPrinter.cpp04-Nov-20142.3K
NoAliasAnalysis.cpp04-Nov-20143.4K
PHITransAddr.cpp04-Nov-201416K
PostDominators.cpp04-Nov-20141.5K
PtrUseVisitor.cpp04-Nov-20141,018
README.txt04-Nov-20141,006
RegionInfo.cpp04-Nov-201423.5K
RegionPass.cpp04-Nov-20148.4K
RegionPrinter.cpp04-Nov-20146.6K
ScalarEvolution.cpp04-Nov-2014310.5K
ScalarEvolutionAliasAnalysis.cpp04-Nov-20146.8K
ScalarEvolutionExpander.cpp04-Nov-201473.1K
ScalarEvolutionNormalization.cpp04-Nov-201410.1K
SparsePropagation.cpp04-Nov-201411.9K
TargetTransformInfo.cpp04-Nov-201420.4K
Trace.cpp04-Nov-20141.7K
TypeBasedAliasAnalysis.cpp04-Nov-201421.6K
ValueTracking.cpp04-Nov-201478.9K

README.txt

      1 Analysis Opportunities:
      2 
      3 //===---------------------------------------------------------------------===//
      4 
      5 In test/Transforms/LoopStrengthReduce/quadradic-exit-value.ll, the
      6 ScalarEvolution expression for %r is this:
      7 
      8   {1,+,3,+,2}<loop>
      9 
     10 Outside the loop, this could be evaluated simply as (%n * %n), however
     11 ScalarEvolution currently evaluates it as
     12 
     13   (-2 + (2 * (trunc i65 (((zext i64 (-2 + %n) to i65) * (zext i64 (-1 + %n) to i65)) /u 2) to i64)) + (3 * %n))
     14 
     15 In addition to being much more complicated, it involves i65 arithmetic,
     16 which is very inefficient when expanded into code.
     17 
     18 //===---------------------------------------------------------------------===//
     19 
     20 In formatValue in test/CodeGen/X86/lsr-delayed-fold.ll,
     21 
     22 ScalarEvolution is forming this expression:
     23 
     24 ((trunc i64 (-1 * %arg5) to i32) + (trunc i64 %arg5 to i32) + (-1 * (trunc i64 undef to i32)))
     25 
     26 This could be folded to
     27 
     28 (-1 * (trunc i64 undef to i32))
     29 
     30 //===---------------------------------------------------------------------===//
     31