[llvm] RegisterCoalescer: Add undef flags in removePartialRedundancy (PR #75152)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 12 01:20:36 PST 2023
================
@@ -1214,6 +1214,19 @@ bool RegisterCoalescer::removePartialRedundancy(const CoalescerPair &CP,
LIS->pruneValue(*static_cast<LiveRange *>(&IntB), CopyIdx.getRegSlot(),
&EndPoints);
BValNo->markUnused();
+
+ if (CopyMI.getOperand(1).isUndef()) {
----------------
qcolombet wrote:
This check needs to be moved up because `CopyMI` is deleted a couple of lines earlier (call to `deleteInstr`).
https://github.com/llvm/llvm-project/pull/75152
More information about the llvm-commits
mailing list