diff options
author | Nikita Popov <npopov@redhat.com> | 2022-03-22 13:57:54 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-03-22 14:00:07 +0100 |
commit | afb526b3f49e06d1b72986d3bc4c5d445cfda05b (patch) | |
tree | a809830745d2da2b2645c4ff640aa84a1db9c94c /llvm/lib/Transforms/Utils/Debugify.cpp | |
parent | c344d97a125b18f8fed0a64aace73c49a870e079 (diff) | |
download | llvm-afb526b3f49e06d1b72986d3bc4c5d445cfda05b.zip llvm-afb526b3f49e06d1b72986d3bc4c5d445cfda05b.tar.gz llvm-afb526b3f49e06d1b72986d3bc4c5d445cfda05b.tar.bz2 |
[LICM] Handle store of pointer to itself (PR54495)
Rather than iterating over users and comparing operands, iterate
over uses and check operand number. Otherwise, we'll end up
promoting a store twice if it has two equal operands.
This can only happen with opaque pointers, as otherwise both
operands differ by a level of indirection, so a bitcast would have
to be involved.
Fixes https://github.com/llvm/llvm-project/issues/54495.
Diffstat (limited to 'llvm/lib/Transforms/Utils/Debugify.cpp')
0 files changed, 0 insertions, 0 deletions