diff options
author | Florian Hahn <flo@fhahn.com> | 2021-04-23 09:27:06 +0100 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2021-04-23 09:48:38 +0100 |
commit | 4f5da356ff35a218f23f0b0c4d08aee90da7de6e (patch) | |
tree | 795217101f93d1a3a14bff1fabb70b3bebf13e9a /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | ab154176bfc7891979b9cd406d2e952a1764f406 (diff) | |
download | llvm-4f5da356ff35a218f23f0b0c4d08aee90da7de6e.zip llvm-4f5da356ff35a218f23f0b0c4d08aee90da7de6e.tar.gz llvm-4f5da356ff35a218f23f0b0c4d08aee90da7de6e.tar.bz2 |
[NewGVN] Track simplification dependencies for phi-of-ops.
If we are using a simplified value, we need to add an extra
dependency this value , because changes to the class of the
simplified value may require us to invalidate any decision based on
that value.
This is done by adding such values as additional users, however the
current code does not excludes temporary instructions.
At the moment, this means that we miss those dependencies for
phi-of-ops, because they are temporary instructions at this point. We
instead need to add the extra dependencies to the root instruction of
the phi-of-ops.
This patch pushes the responsibility of adding extra users to the
callers of createExpression & performSymbolicEvaluation. At those
points, it is clearer which real instruction to pick.
Alternatively we could either pass the 'real' instruction as additional
argument or use another map, but I think the approach in the patch makes
things a bit easier to follow.
Fixes PR35074.
Reviewed By: asbirlea
Differential Revision: https://reviews.llvm.org/D99987
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions