Tex Riddell 7c9e487afd Implement IsHelperLane() (#3382) il y a 4 ans
..
IPA 4391420da4 Integration from OS repo (#2541) il y a 5 ans
AliasAnalysis.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
AliasAnalysisCounter.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
AliasAnalysisEvaluator.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
AliasDebugger.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
AliasSetTracker.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
Analysis.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
AssumptionCache.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
BasicAliasAnalysis.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
BlockFrequencyInfo.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
BlockFrequencyInfoImpl.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
BranchProbabilityInfo.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
CFG.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
CFGPrinter.cpp bbe8831fe1 fix dot-cfg so it doesn't act like dot-cfg-only (#556) il y a 8 ans
CFLAliasAnalysis.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
CGSCCPassManager.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
CMakeLists.txt 2ac188b4ce Minor refactoring to reduce size of dxilconv.dll (#3240) il y a 4 ans
CaptureTracking.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
CodeMetrics.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
ConstantFolding.cpp b9f2c78314 [linux-port] Evade unused in LLVM code (#1327) il y a 7 ans
CostModel.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
Delinearization.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
DependenceAnalysis.cpp d5bb3089cf Add support for custom allocators (#390) il y a 8 ans
DivergenceAnalysis.cpp e5c0e5ffaa Merge DivergenceAnalysis from llvm3.8. (#528) il y a 8 ans
DomPrinter.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
DominanceFrontier.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
DxilConstantFolding.cpp 7c9e487afd Implement IsHelperLane() (#3382) il y a 4 ans
DxilConstantFoldingExt.cpp 022eb5717f Add hooks for constant folding extensions (#209) il y a 8 ans
DxilSimplify.cpp d8dec0efd7 Fixed some cases where O0 fails compilation (#3205) il y a 4 ans
DxilValueCache.cpp 91df0242a3 Not assuming callee being a function in DVC (#3206) il y a 4 ans
IVUsers.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
InstCount.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
InstructionSimplify.cpp d8dec0efd7 Fixed some cases where O0 fails compilation (#3205) il y a 4 ans
Interval.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
IntervalPartition.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
IteratedDominanceFrontier.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
LLVMBuild.txt f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
LazyCallGraph.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
LazyValueInfo.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
LibCallAliasAnalysis.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
LibCallSemantics.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
Lint.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
Loads.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
LoopAccessAnalysis.cpp d5bb3089cf Add support for custom allocators (#390) il y a 8 ans
LoopInfo.cpp d5bb3089cf Add support for custom allocators (#390) il y a 8 ans
LoopPass.cpp d5bb3089cf Add support for custom allocators (#390) il y a 8 ans
MemDepPrinter.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
MemDerefPrinter.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
MemoryBuiltins.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
MemoryDependenceAnalysis.cpp 08f3100f25 Increase scan limit for DSE, add option (#2725) il y a 5 ans
MemoryLocation.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
ModuleDebugInfoPrinter.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
NoAliasAnalysis.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
PHITransAddr.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
PostDominators.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
PtrUseVisitor.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
README.txt f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
ReducibilityAnalysis.cpp fbe1371aae Fix Validation for RDAT and other issues with Subobjects (#1706) il y a 6 ans
RegionPass.cpp d5bb3089cf Add support for custom allocators (#390) il y a 8 ans
ScalarEvolution.cpp 227c8e6f5a Added instructions to preserve intermediate values of computations. (#2721) il y a 5 ans
ScalarEvolutionAliasAnalysis.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
ScalarEvolutionExpander.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
ScalarEvolutionNormalization.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
ScopedNoAliasAA.cpp d5bb3089cf Add support for custom allocators (#390) il y a 8 ans
SparsePropagation.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
StratifiedSets.h f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
TargetLibraryInfo.cpp 4aa0ac6c50 [linux-port] Fix GCC build on alpine Linux (and others) (#1378) il y a 7 ans
TargetTransformInfo.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
Trace.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans
TypeBasedAliasAnalysis.cpp d5bb3089cf Add support for custom allocators (#390) il y a 8 ans
ValueTracking.cpp d5bb3089cf Add support for custom allocators (#390) il y a 8 ans
VectorUtils.cpp 2ac188b4ce Minor refactoring to reduce size of dxilconv.dll (#3240) il y a 4 ans
VectorUtils2.cpp 2ac188b4ce Minor refactoring to reduce size of dxilconv.dll (#3240) il y a 4 ans
regioninfo.cpp d5bb3089cf Add support for custom allocators (#390) il y a 8 ans
regionprinter.cpp f805233b49 Revert license text in banner comments to original llvm verbage (#33) il y a 8 ans

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

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