aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-07-24 20:33:23 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-07-24 20:33:23 +0000
commit81d686edbe6effe624add9394673bd571d89bfb7 (patch)
tree3fa4f36d400c50524cbdeeb0f57a385e49183bf8
parentb09701db9e74298912164d988ddf40bb1b5ec19b (diff)
downloadexternal_llvm-81d686edbe6effe624add9394673bd571d89bfb7.zip
external_llvm-81d686edbe6effe624add9394673bd571d89bfb7.tar.gz
external_llvm-81d686edbe6effe624add9394673bd571d89bfb7.tar.bz2
Never extend live ranges for <undef> uses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135886 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SplitKit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SplitKit.cpp b/lib/CodeGen/SplitKit.cpp
index 46a43d8..2197046 100644
--- a/lib/CodeGen/SplitKit.cpp
+++ b/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.