From 546017322f2b21573cad3412e52f1d0a49af714a Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Mon, 18 Jun 2018 17:16:39 +0000 Subject: Shrink interval after moving copy in removePartialRedundancy llvm-svn: 334963 --- llvm/lib/CodeGen/RegisterCoalescer.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/CodeGen') diff --git a/llvm/lib/CodeGen/RegisterCoalescer.cpp b/llvm/lib/CodeGen/RegisterCoalescer.cpp index 20e38f2895d..50938819d0a 100644 --- a/llvm/lib/CodeGen/RegisterCoalescer.cpp +++ b/llvm/lib/CodeGen/RegisterCoalescer.cpp @@ -1050,6 +1050,8 @@ bool RegisterCoalescer::removePartialRedundancy(const CoalescerPair &CP, BValNo->markUnused(); LIS->extendToIndices(SR, EndPoints); } + // If any dead defs were extended, truncate them. + shrinkToUses(&IntB); // Finally, update the live-range of IntA. shrinkToUses(&IntA); -- cgit v1.2.3