From 73a9eb9f815896ac8d766101eeb7f3c32f77257d Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Sun, 24 Jul 2011 20:33:23 +0000 Subject: Never extend live ranges for uses. llvm-svn: 135886 --- llvm/lib/CodeGen/SplitKit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/SplitKit.cpp') diff --git a/llvm/lib/CodeGen/SplitKit.cpp b/llvm/lib/CodeGen/SplitKit.cpp index 46a43d8bd72..2197046b030 100644 --- a/llvm/lib/CodeGen/SplitKit.cpp +++ b/llvm/lib/CodeGen/SplitKit.cpp @@ -952,7 +952,7 @@ void SplitEditor::rewriteAssigned(bool ExtendRanges) { << Idx << ':' << RegIdx << '\t' << *MI); // Extend liveness to Idx if the instruction reads reg. - if (!ExtendRanges) + if (!ExtendRanges || MO.isUndef()) continue; // Skip instructions that don't read Reg. -- cgit v1.2.3