[llvm] Reland "RegisterCoalescer: Add implicit-def of super register when coalescing SUBREG_TO_REG" (PR #168353)
Sander de Smalen via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 18 04:23:30 PST 2025
================
@@ -2046,6 +2138,30 @@ void RegisterCoalescer::setUndefOnPrunedSubRegUses(LiveInterval &LI,
LIS->shrinkToUses(&LI);
}
+/// For a given use of value \p Idx, it returns the def in the current block,
+/// or otherwise all possible defs in preceding blocks.
+static bool FindDefInBlock(SmallPtrSetImpl<MachineBasicBlock *> &VisitedBlocks,
----------------
sdesmalen-arm wrote:
done.
https://github.com/llvm/llvm-project/pull/168353
More information about the llvm-commits
mailing list