[all-commits] [llvm/llvm-project] 5d2e28: MachineCopyPropagation: Do not remove copies prese...
Jinsong Ji via All-commits
all-commits at lists.llvm.org
Mon Feb 10 09:26:55 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5d2e2847e09ae70e24b6c749c08028e705786113
https://github.com/llvm/llvm-project/commit/5d2e2847e09ae70e24b6c749c08028e705786113
Author: Jinsong Ji <jinsong.ji at intel.com>
Date: 2025-02-10 (Mon, 10 Feb 2025)
Changed paths:
M llvm/lib/CodeGen/MachineCopyPropagation.cpp
A llvm/test/CodeGen/MIR/X86/pr126107.mir
Log Message:
-----------
MachineCopyPropagation: Do not remove copies preserved by regmask (#125868)
llvm/llvm-project at 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 at gmail.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list