Skip to content
  1. Dec 21, 2009
  2. Dec 19, 2009
    • Chris Lattner's avatar
      fix PR5827 by disabling the phi slicing transformation in a case · 4ad5eba5
      Chris Lattner authored
      where instcombine would have to split a critical edge due to a
      phi node of an invoke.  Since instcombine can't change the CFG,
      it has to bail out from doing the transformation.
      
      llvm-svn: 91763
      4ad5eba5
    • Bob Wilson's avatar
      Update my SROA changes in response to review. · c16811b5
      Bob Wilson authored
      * change FindElementAndOffset to return a uint64_t instead of unsigned, and
        to identify the type to be used for that result in a GEP instruction.
      * move "isa<ConstantInt>" to be first in conditional.
      * replace some dyn_casts with casts.
      * add a comment about handling mem intrinsics.
      
      llvm-svn: 91762
      c16811b5
  3. Dec 18, 2009
  4. Dec 17, 2009
  5. Dec 16, 2009
  6. Dec 15, 2009
  7. Dec 14, 2009
  8. Dec 12, 2009
    • Bob Wilson's avatar
      Revise scalar replacement to be more flexible about handle bitcasts and GEPs. · 895f364a
      Bob Wilson authored
      While scanning through the uses of an alloca, keep track of the current offset
      relative to the start of the alloca, and check memory references to see if
      the offset & size correspond to a component within the alloca.  This has the
      nice benefit of unifying much of the code from isSafeUseOfAllocation,
      isSafeElementUse, and isSafeUseOfBitCastedAllocation.  The code to rewrite
      the uses of a promoted alloca, after it is determined to be safe, is
      reorganized in the same way.
      
      Also, when rewriting GEP instructions, mark them as "in-bounds" since all the
      indices are known to be safe.
      
      llvm-svn: 91184
      895f364a
  9. Dec 10, 2009
Loading