diff options
author | Anshil Gandhi <gandhi21299@gmail.com> | 2023-01-17 10:36:05 -0700 |
---|---|---|
committer | Anshil Gandhi <gandhi21299@gmail.com> | 2023-01-17 10:56:03 -0700 |
commit | 2449cbabddc73668abf60357d476a78692193286 (patch) | |
tree | 7692644e5c9b49efab5a75e150f25bc437607b79 /llvm/unittests/ADT/ArrayRefTest.cpp | |
parent | 9a479008d466bbab885e4f7be03a50a1ee547dba (diff) | |
download | llvm-2449cbabddc73668abf60357d476a78692193286.zip llvm-2449cbabddc73668abf60357d476a78692193286.tar.gz llvm-2449cbabddc73668abf60357d476a78692193286.tar.bz2 |
[InstCombine] Handle PHI nodes in PtrReplacer
This patch adds on to the functionality implemented
in rG42ab5dc5a5dd6c79476104bdc921afa2a18559cf,
where PHI nodes are supported in the use-def traversal
algorithm to determine if an alloca ever overwritten
in addition to a memmove/memcpy. This patch implements
the support needed by the PointerReplacer to collect
all (indirect) users of the alloca in cases where a PHI
is involved. Finally, a new PHI is defined in the replace
method which takes in replaced incoming values and
updates the WorkMap accordingly.
Reviewed By: nikic
Differential Revision: https://reviews.llvm.org/D136201
Diffstat (limited to 'llvm/unittests/ADT/ArrayRefTest.cpp')
0 files changed, 0 insertions, 0 deletions