1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Never extend live ranges for <undef> uses.

llvm-svn: 135886
This commit is contained in:
Jakob Stoklund Olesen 2011-07-24 20:33:23 +00:00
parent 0e4f7f92a2
commit e00fa0544e

View File

@ -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.