[llvm-commits] [llvm] r135886 - /llvm/trunk/lib/CodeGen/SplitKit.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Sun Jul 24 13:33:24 PDT 2011
Author: stoklund
Date: Sun Jul 24 15:33:23 2011
New Revision: 135886
URL: http://llvm.org/viewvc/llvm-project?rev=135886&view=rev
Log:
Never extend live ranges for <undef> uses.
Modified:
llvm/trunk/lib/CodeGen/SplitKit.cpp
Modified: llvm/trunk/lib/CodeGen/SplitKit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SplitKit.cpp?rev=135886&r1=135885&r2=135886&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SplitKit.cpp (original)
+++ llvm/trunk/lib/CodeGen/SplitKit.cpp Sun Jul 24 15:33:23 2011
@@ -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.
More information about the llvm-commits
mailing list