[Reassociate] Removing instructions mutates the IR.
authorDavide Italiano <davide@freebsd.org>
Fri, 28 Oct 2016 02:47:09 +0000 (02:47 +0000)
committerDavide Italiano <davide@freebsd.org>
Fri, 28 Oct 2016 02:47:09 +0000 (02:47 +0000)
commit631cd27f29607272d58d32b3978bde69b814d2c7
tree6c26800c30d464e50ef51c7881a2d1eb9c4aab05
parent02563cd3a6150c829d050ad64217a2a91d397534
[Reassociate] Removing instructions mutates the IR.

Fixes PR 30784. Discussed with Justin, who pointed out that
in the new PassManager infrastructure we can have more fine-grained
control on which analyses we want to preserve, but this is the
best we can do with the current infrastructure.

llvm-svn: 285380
llvm/lib/Transforms/Scalar/Reassociate.cpp
llvm/test/Transforms/Reassociate/reassociate-deadinst.ll [new file with mode: 0644]