Skip to content
  1. Dec 18, 2009
  2. Dec 17, 2009
  3. Dec 16, 2009
  4. Dec 15, 2009
  5. Dec 14, 2009
  6. Dec 13, 2009
  7. 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
  8. Dec 10, 2009
  9. Dec 09, 2009
Loading