OSDN Git Service

Remove dead instructions before Redoing
authorAditya Nandakumar <aditya_nandakumar@apple.com>
Mon, 4 Jan 2016 19:48:14 +0000 (19:48 +0000)
committerAditya Nandakumar <aditya_nandakumar@apple.com>
Mon, 4 Jan 2016 19:48:14 +0000 (19:48 +0000)
commit3c91dc3b095552a64df3961b41a3caf6ebca57d3
tree0593d6a7515250963815d96b81204bfbac5f1149
parent8c5b0b157eace81caa0bc7d2fb3f8edc1b172a2c
Remove dead instructions before Redoing

Before reevaluating instructions, iterate over all instructions
to be reevaluated and remove trivially dead instructions and if
any of it's operands become trivially dead, mark it for deletion
until all trivially dead instructions have been removed

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256773 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/Reassociate.cpp
test/Transforms/Reassociate/factorize-again.ll [new file with mode: 0644]
test/Transforms/Reassociate/secondary.ll