Skip to content
  1. Nov 05, 2009
    • Victor Hernandez's avatar
      Update CreateMalloc so that its callers specify the size to allocate: · 492ed30a
      Victor Hernandez authored
      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.
      
      llvm-svn: 86077
      492ed30a
    • Devang Patel's avatar
      While calculating original type size for a derived type, handle type variants... · f05d5728
      Devang Patel authored
      While calculating original type size for a derived type, handle type variants encoded as DIDerivedType appropriately.
      This improves bitfield support.
      
      llvm-svn: 86073
      f05d5728
    • Jim Grosbach's avatar
      Grammar. · 31569240
      Jim Grosbach authored
      llvm-svn: 86068
      31569240
    • Chris Lattner's avatar
      improve DSE when TargetData is not around, based on work by · a0906275
      Chris Lattner authored
      Hans Wennborg!
      
      llvm-svn: 86067
      a0906275
    • Jim Grosbach's avatar
      Now that the memory leak from McCat/08-main has been fixed (86056), re-enable · 5833df9b
      Jim Grosbach authored
      aggressive testing of dynamic stack alignment.
      Note that this is off by default, and enabled for LLCBETA nightly results.
      
      llvm-svn: 86064
      5833df9b
  2. Nov 04, 2009
  3. Nov 03, 2009
Loading