diff options
author | Nikita Popov <npopov@redhat.com> | 2022-10-05 13:26:20 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-10-05 13:28:23 +0200 |
commit | 11897708c0229c92802e747564e7c34b722f045f (patch) | |
tree | 8e644040b9decca4a1eb3e47a8099f71bc8043b8 /clang/unittests/Basic/SourceManagerTest.cpp | |
parent | e035f03e92771062eff362303823c1db98c7907a (diff) | |
download | llvm-11897708c0229c92802e747564e7c34b722f045f.zip llvm-11897708c0229c92802e747564e7c34b722f045f.tar.gz llvm-11897708c0229c92802e747564e7c34b722f045f.tar.bz2 |
[InstCombine] Directly replace instr in foldIntegerTypedPHI() (NFCI)
Rather than inserting a ptrtoint + inttoptr pair, directly replace
the inttoptr with the new phi node. This ensures that no other
transform can undo it before the pair gets folded away.
This avoids the infinite loop when combined with D134954.
This is NFCI in the sense that it shouldn't make a difference, but
could due to different worklist order.
Diffstat (limited to 'clang/unittests/Basic/SourceManagerTest.cpp')
0 files changed, 0 insertions, 0 deletions