OSDN Git Service

[NewGVN] Update additionalUsers when we simplify to a value.
authorDavide Italiano <davide@freebsd.org>
Wed, 24 May 2017 02:30:24 +0000 (02:30 +0000)
committerDavide Italiano <davide@freebsd.org>
Wed, 24 May 2017 02:30:24 +0000 (02:30 +0000)
commit6ff9a78ce54227a41409007117f764d60f872909
tree926d137cb9765b8a8d129fd19ecd0c0c1ab77d0b
parent819a5c68c5b984d96afb3ea49a751477753aee15
[NewGVN] Update additionalUsers when we simplify to a value.

Otherwise we don't revisit an instruction that could be simplified,
and when we verify, we discover there's something that changed, i.e.
what we had wasn't a maximal fixpoint.

Fixes PR32836.

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