OSDN Git Service

[NaryReassociate] SeenExprs records WeakVH
authorJingyue Wu <jingyue@google.com>
Thu, 1 Oct 2015 03:51:44 +0000 (03:51 +0000)
committerJingyue Wu <jingyue@google.com>
Thu, 1 Oct 2015 03:51:44 +0000 (03:51 +0000)
commitfd5a6e2618cea2de1b48b3b559d1bd257ec8f544
tree93221c7d4874a367a79020da62def10531675d45
parent2eee2e2c5e93bfa53106333908a769e164f5f58a
[NaryReassociate] SeenExprs records WeakVH

Summary:
The instructions SeenExprs records may be deleted during rewriting.
FindClosestMatchingDominator should ignore these deleted instructions.

Fixes PR24301.

Reviewers: grosser

Subscribers: grosser, llvm-commits

Differential Revision: http://reviews.llvm.org/D13315

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