commit | bdee2b6fc17530d4218e7139a23131dfae7a9ccd | [log] [tgz] |
---|---|---|
author | Florian Hahn <florian.hahn@arm.com> | Wed Nov 07 17:20:07 2018 +0000 |
committer | Florian Hahn <florian.hahn@arm.com> | Wed Nov 07 17:20:07 2018 +0000 |
tree | 1caaf69a5163dc298fa7daed85e8778e4abbd4a0 | |
parent | bf862d6543990dcbf284d74c04d6f7200021923b [diff] |
[NewGVN] Make sure we do not add a user to itself. If we simplify an instruction to itself, we do not need to add a user to itself. For congruence classes with a defining expression, we already use a similar logic. Fixes PR38259. Reviewers: davide, efriedma, mcrosier Reviewed By: davide Differential Revision: https://reviews.llvm.org/D51168 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346335 91177308-0d34-0410-b5e6-96231b3b80d8