commit | 73a9eb9f815896ac8d766101eeb7f3c32f77257d | [log] [tgz] |
---|---|---|
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | Sun Jul 24 20:33:23 2011 +0000 |
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | Sun Jul 24 20:33:23 2011 +0000 |
tree | 6e5f56a8348b2c6ce62fd85d809ca24170cb4069 | |
parent | 56a56eb80e516852f87a9aeb147c1443ab4731e1 [diff] [blame] |
Never extend live ranges for <undef> uses. llvm-svn: 135886
diff --git a/llvm/lib/CodeGen/SplitKit.cpp b/llvm/lib/CodeGen/SplitKit.cpp index 46a43d8..2197046 100644 --- a/llvm/lib/CodeGen/SplitKit.cpp +++ b/llvm/lib/CodeGen/SplitKit.cpp
@@ -952,7 +952,7 @@ << 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.