Skip to content
  1. Nov 05, 2009
    • Dan Gohman's avatar
      Delete an unused member variable. · 885c46e3
      Dan Gohman authored
      llvm-svn: 86160
      885c46e3
    • Dan Gohman's avatar
      Add an assertion to catch indirectbr in SplitBlockPredecessors. This · 00c79382
      Dan Gohman authored
      makes several optimization passes abort in cases where they're currently
      silently miscompiling code.
      
      Remove the indirectbr assertion from SplitEdge. Indirectbr is only
      a problem for critical edges, and SplitEdge defers to SplitCriticalEdge
      to handle those, and SplitCriticalEdge has its own assertion for
      indirectbr.
      
      llvm-svn: 86147
      00c79382
    • Benjamin Kramer's avatar
      b971445a
    • Benjamin Kramer's avatar
      Do map insert+find in one step. TODO -= 2. · 3fcbb821
      Benjamin Kramer authored
      llvm-svn: 86133
      3fcbb821
    • 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
    • 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
  2. Nov 04, 2009
  3. Nov 03, 2009
  4. Nov 02, 2009
  5. Nov 01, 2009
Loading