aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2023-08-17 16:37:32 +0200
committerNikita Popov <npopov@redhat.com>2023-09-15 07:04:32 +0200
commit7c229f6e85478bb0626a5e598f47b7be94bb50b0 (patch)
tree24aa41182c7fdcf6c05d1c14effdce6863de23ad /llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
parent2c8b6f16a60e99f5a39c55a91fde747e899c5422 (diff)
downloadllvm-7c229f6e85478bb0626a5e598f47b7be94bb50b0.zip
llvm-7c229f6e85478bb0626a5e598f47b7be94bb50b0.tar.gz
llvm-7c229f6e85478bb0626a5e598f47b7be94bb50b0.tar.bz2
[GVN] Invalidate MDA when deduplicating phi nodes
Duplicate phi nodes were being directly removed, without invalidating MDA. This could result in a new phi node being allocated at the same address, incorrectly reusing a cache entry. Fix this by optionally allowing EliminateDuplicatePHINodes() to collect phi nodes to remove into a vector, which allows GVN to handle removal itself. Fixes https://github.com/llvm/llvm-project/issues/64598. Differential Revision: https://reviews.llvm.org/D158849
Diffstat (limited to 'llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions