Greg Roth 7d665725a8 Add simplify to DxilValueCache for dx.break() (#2803) 5 years ago
..
IPA 4391420da4 Integration from OS repo (#2541) 6 years ago
AliasAnalysis.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
AliasAnalysisCounter.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
AliasAnalysisEvaluator.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
AliasDebugger.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
AliasSetTracker.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
Analysis.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
AssumptionCache.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
BasicAliasAnalysis.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
BlockFrequencyInfo.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
BlockFrequencyInfoImpl.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
BranchProbabilityInfo.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CFG.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CFGPrinter.cpp bbe8831fe1 fix dot-cfg so it doesn't act like dot-cfg-only (#556) 8 years ago
CFLAliasAnalysis.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CGSCCPassManager.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CMakeLists.txt b33846a03c Using DxilValueCache for unroll. (#2694) 5 years ago
CaptureTracking.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
CodeMetrics.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
ConstantFolding.cpp b9f2c78314 [linux-port] Evade unused in LLVM code (#1327) 7 years ago
CostModel.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
Delinearization.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
DependenceAnalysis.cpp d5bb3089cf Add support for custom allocators (#390) 8 years ago
DivergenceAnalysis.cpp e5c0e5ffaa Merge DivergenceAnalysis from llvm3.8. (#528) 8 years ago
DomPrinter.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
DominanceFrontier.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
DxilConstantFolding.cpp 0bd0afe693 const folding on dxil.convergent.marker. (#2523) 6 years ago
DxilConstantFoldingExt.cpp 022eb5717f Add hooks for constant folding extensions (#209) 8 years ago
DxilSimplify.cpp 4df08af7c0 Move DxilModule into DXIL directory. (#1599) 7 years ago
DxilValueCache.cpp 7d665725a8 Add simplify to DxilValueCache for dx.break() (#2803) 5 years ago
IVUsers.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
InstCount.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
InstructionSimplify.cpp f4965b71dd Integrate dxcapi v2 and other changes from internal (#2575) 6 years ago
Interval.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
IntervalPartition.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
IteratedDominanceFrontier.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
LLVMBuild.txt f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
LazyCallGraph.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
LazyValueInfo.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
LibCallAliasAnalysis.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
LibCallSemantics.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
Lint.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
Loads.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
LoopAccessAnalysis.cpp d5bb3089cf Add support for custom allocators (#390) 8 years ago
LoopInfo.cpp d5bb3089cf Add support for custom allocators (#390) 8 years ago
LoopPass.cpp d5bb3089cf Add support for custom allocators (#390) 8 years ago
MemDepPrinter.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
MemDerefPrinter.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
MemoryBuiltins.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
MemoryDependenceAnalysis.cpp 08f3100f25 Increase scan limit for DSE, add option (#2725) 5 years ago
MemoryLocation.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
ModuleDebugInfoPrinter.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
NoAliasAnalysis.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
PHITransAddr.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
PostDominators.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
PtrUseVisitor.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
README.txt f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
ReducibilityAnalysis.cpp fbe1371aae Fix Validation for RDAT and other issues with Subobjects (#1706) 7 years ago
RegionPass.cpp d5bb3089cf Add support for custom allocators (#390) 8 years ago
ScalarEvolution.cpp 227c8e6f5a Added instructions to preserve intermediate values of computations. (#2721) 5 years ago
ScalarEvolutionAliasAnalysis.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
ScalarEvolutionExpander.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
ScalarEvolutionNormalization.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
ScopedNoAliasAA.cpp d5bb3089cf Add support for custom allocators (#390) 8 years ago
SparsePropagation.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
StratifiedSets.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
TargetLibraryInfo.cpp 4aa0ac6c50 [linux-port] Fix GCC build on alpine Linux (and others) (#1378) 7 years ago
TargetTransformInfo.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
Trace.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
TypeBasedAliasAnalysis.cpp d5bb3089cf Add support for custom allocators (#390) 8 years ago
ValueTracking.cpp d5bb3089cf Add support for custom allocators (#390) 8 years ago
VectorUtils.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago
regioninfo.cpp d5bb3089cf Add support for custom allocators (#390) 8 years ago
regionprinter.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) 9 years ago

README.txt

Analysis Opportunities:

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

In test/Transforms/LoopStrengthReduce/quadradic-exit-value.ll, the
ScalarEvolution expression for %r is this:

{1,+,3,+,2}

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))

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