Grab-bag of reassociate tweaks. Unify handling of dead instructions and
authorDuncan Sands <baldrick@free.fr>
Wed, 6 Jun 2012 14:53:10 +0000 (14:53 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 6 Jun 2012 14:53:10 +0000 (14:53 +0000)
commitb933586592afa9596edd466e127401bffeba3d4a
tree0aaa4adce3194aa52fe460d2e2a6d407abb667fd
parentd14e4e133f940d0c1f454a40f3bd835a8c7a7886
Grab-bag of reassociate tweaks.  Unify handling of dead instructions and
instructions to reoptimize.  Exploit this to more systematically eliminate
dead instructions (this isn't very useful in practice but is convenient for
analysing some testcase I am working on).  No need for WeakVH any more: use
an AssertingVH instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158073 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/Reassociate.cpp
test/Transforms/Reassociate/fp-commute.ll