[llvm] [LiveVariables] Mark use as implicit-def if def is a subregister (PR #119446)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 10 12:43:34 PST 2024
================
@@ -277,10 +277,21 @@ void LiveVariables::HandlePhysRegUse(Register Reg, MachineInstr &MI) {
continue;
if (PartDefRegs.count(SubReg))
continue;
+
+ // Check if SubReg is defined at LastPartialDef.
+ bool IsDefinedHere = false;
+ for (int i = 0; i < LastPartialDef->getNumOperands(); ++i) {
----------------
shiltian wrote:
nit: I don't know the rules of simple induction variable, but I'd name it `int I`.
https://github.com/llvm/llvm-project/pull/119446
More information about the llvm-commits
mailing list