• Andreas Fried's avatar
    Add an optimization for CopyB nodes. · 9a42176a
    Andreas Fried authored and yb9976's avatar yb9976 committed
    This covers two cases (assuming no aliasing operations in between the nodes):
    Firstly, a Store node whose destination lies completely within the CopyB's
    destination can be deleted.
    Secondly, if a previous CopyB (A) writes to the source of CopyB to be optimized
    (B), we can use A's source pointer for further optimizations. If A's source is
    constant, we can change B to read from A's source.  Cases with offsets are not