Skip to content
  • Chris Lattner's avatar
    Fix PR8728, a miscompilation I recently introduced. When optimizing · 94fbdf38
    Chris Lattner authored
    memcpy's like:
      memcpy(A, B)
      memcpy(A, C)
    
    we cannot delete the first memcpy as dead if A and C might be aliases.
    If so, we actually get:
    
      memcpy(A, B)
      memcpy(A, A)
    
    which is not correct to transform into:
    
      memcpy(A, A)
    
    This patch was heavily influenced by Jakub Staszak's patch in PR8728, thanks
    Jakub!
    
    llvm-svn: 120974
    94fbdf38
Loading