llvm-6502/include/llvm/Analysis
Victor Hernandez 24f934d055 Update CreateMalloc so that its callers specify the size to allocate:
MallocInst-autoupgrade users use non-TargetData-computed allocation sizes.
Optimization uses use TargetData to compute the allocation size.

Now that malloc calls can have constant sizes, update isArrayMallocHelper() to use TargetData to determine the size of the malloced type and the size of malloced arrays.
Extend getMallocType() to support malloc calls that have non-bitcast uses.

Update OptimizeGlobalAddressOfMalloc() to optimize malloc calls that have non-bitcast uses.  The bitcast use of a malloc call has to be treated specially here because the uses of the bitcast need to be replaced and the bitcast needs to be erased (just like the malloc call) for OptimizeGlobalAddressOfMalloc() to work correctly.

Update PerformHeapAllocSRoA() to optimize malloc calls that have non-bitcast uses.  The bitcast use of the malloc is not handled specially here because ReplaceUsesOfMallocWithGlobal replaces through the bitcast use.

Update OptimizeOnceStoredGlobal() to not care about the malloc calls' bitcast use.

Update all globalopt malloc tests to not rely on autoupgraded-MallocInsts, but instead use explicit malloc calls with correct allocation sizes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86077 91177308-0d34-0410-b5e6-96231b3b80d8
2009-11-05 00:03:03 +00:00
..
AliasAnalysis.h Global Aliases are not identifiable objects. 2009-08-27 17:52:56 +00:00
AliasSetTracker.h Remove FreeInst. 2009-10-26 23:43:48 +00:00
CallGraph.h Reverting 85714, 85715, 85716, which are breaking the build 2009-11-01 16:42:53 +00:00
CaptureTracking.h
CFGPrinter.h make DOTGraphTraits public, patch by Tobias Grosser! 2009-10-18 04:09:11 +00:00
ConstantFolding.h Move some constant folding logic for loads out of instcombine into 2009-10-22 06:25:11 +00:00
ConstantsScanner.h eliminate all 80-col violations that I have introduced in my recent checkins (and some others more) 2009-08-27 23:44:33 +00:00
DebugInfo.h Add support to encode type info using llvm::Constant. 2009-10-26 16:54:35 +00:00
DominatorInternals.h
Dominators.h Make DominanceFrontier::addBasicBlock return the iterator for the newly 2009-10-24 19:57:58 +00:00
DomPrinter.h add function passes for printing various dominator datastructures 2009-10-18 04:10:40 +00:00
FindUsedTypes.h Change Pass::print to take a raw ostream instead of std::ostream, 2009-08-23 06:03:38 +00:00
InlineCost.h Fix resetCachedCostInfo to reset all of the cost information, instead of 2009-10-13 23:36:36 +00:00
Interval.h Change Pass::print to take a raw ostream instead of std::ostream, 2009-08-23 06:03:38 +00:00
IntervalIterator.h eliminate all 80-col violations that I have introduced in my recent checkins (and some others more) 2009-08-27 23:44:33 +00:00
IntervalPartition.h Change Pass::print to take a raw ostream instead of std::ostream, 2009-08-23 06:03:38 +00:00
IVUsers.h remove a few dead insertion methods. 2009-08-24 02:39:26 +00:00
LibCallAliasAnalysis.h Public and private corrections, warned about by icc (#304). 2009-09-06 08:55:57 +00:00
LibCallSemantics.h
LiveValues.h
LoopDependenceAnalysis.h remove a few dead insertion methods. 2009-08-24 02:39:26 +00:00
LoopInfo.h Rename isLoopExit to isLoopExiting, for consistency with the wording 2009-10-24 23:34:26 +00:00
LoopPass.h Extract the code for inserting a loop into the loop queue into 2009-09-27 23:49:43 +00:00
MemoryBuiltins.h Update CreateMalloc so that its callers specify the size to allocate: 2009-11-05 00:03:03 +00:00
MemoryDependenceAnalysis.h Fix a typo in a comment. 2009-07-31 19:26:54 +00:00
Passes.h Reverting 85714, 85715, 85716, which are breaking the build 2009-11-01 16:42:53 +00:00
PointerTracking.h remove a few dead insertion methods. 2009-08-24 02:39:26 +00:00
PostDominators.h add nodes_begin/end/iterator for dominfo, patch by Tobias Grosser! 2009-10-18 04:05:53 +00:00
ProfileInfo.h Add the first functions for updating ProfileInfo. 2009-09-09 17:52:57 +00:00
ProfileInfoLoader.h Reapplied r81355 with the problems fixed. 2009-09-16 11:35:50 +00:00
ProfileInfoTypes.h OptimalEdgeProfiling: Creation of profiles. 2009-09-01 19:03:44 +00:00
ScalarEvolution.h Rename forgetLoopBackedgeTakenCount to forgetLoop, because it 2009-10-31 15:04:55 +00:00
ScalarEvolutionExpander.h Various comment and whitespace cleanups. 2009-08-20 16:42:55 +00:00
ScalarEvolutionExpressions.h Add the ability to track HasNSW and HasNUW on more kinds of SCEV expressions. 2009-10-09 00:10:36 +00:00
SparsePropagation.h Lett users of sparse propagation do their own thing with phi nodes if they want 2009-09-19 18:33:36 +00:00
Trace.h eliminate the "Value" printing methods that print to a std::ostream. 2009-08-23 04:37:46 +00:00
ValueTracking.h Move DataTypes.h to include/llvm/System, update all users. This breaks the last 2009-10-26 01:35:46 +00:00
Verifier.h