diff options
author | Jinsong Ji <jinsong.ji@intel.com> | 2025-02-10 12:26:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-10 12:26:33 -0500 |
commit | 5d2e2847e09ae70e24b6c749c08028e705786113 (patch) | |
tree | ebc94ddd93e8d6162a2dbab56d55891c511eea43 /llvm/lib/CodeGen/MachineOperand.cpp | |
parent | 0a470a926481d370251731cb2dd897531756335f (diff) | |
download | llvm-5d2e2847e09ae70e24b6c749c08028e705786113.zip llvm-5d2e2847e09ae70e24b6c749c08028e705786113.tar.gz llvm-5d2e2847e09ae70e24b6c749c08028e705786113.tar.bz2 |
MachineCopyPropagation: Do not remove copies preserved by regmask (#125868)
llvm/llvm-project@9e436c2daa44 tries to handle register masks and
sub-registers, it avoids clobbering RegUnit presreved by regmask. But it
then introduces invalid pointer issues.
We delete the copies without invalidate all the use in the CopyInfo, so
we dereferenced invalid pointers in next interation, causing asserts.
Fixes: #126107
---------
Co-authored-by: Matt Arsenault <arsenm2@gmail.com>
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
0 files changed, 0 insertions, 0 deletions