[llvm] [CodeGen] Ensure clearRegisterKills clears inside bundles. (PR #149177)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 11 00:38:20 PDT 2025
================
@@ -1700,7 +1700,8 @@ class MachineInstr
/// Clear all kill flags affecting Reg. If RegInfo is provided, this includes
/// all aliasing registers.
LLVM_ABI void clearRegisterKills(Register Reg,
- const TargetRegisterInfo *RegInfo);
+ const TargetRegisterInfo *RegInfo,
+ QueryType Type = AllInBundle);
----------------
davemgreen wrote:
If the code calling clearRegisterKills already iterates over all instructions they might be fine already. It's hard to tell from the code which is which, but I think the Arm uses are probably OK (there are many more bundles used there, they are rarer on AArch64 before movprfx).
https://github.com/llvm/llvm-project/pull/149177
More information about the llvm-commits
mailing list