Skip to content
  • Bob Wilson's avatar
    Reapply 91184 with fixes and an addition to the testcase to cover the problem · e44756d7
    Bob Wilson authored
    found last time.  Instead of trying to modify the IR while iterating over it,
    I've change it to keep a list of WeakVH references to dead instructions, and
    then delete those instructions later.  I also added some special case code to
    detect and handle the situation when both operands of a memcpy intrinsic are
    referencing the same alloca.
    
    llvm-svn: 91459
    e44756d7
Loading