1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 13:11:39 +01:00

Reset "undef" flag when coalescing subregister into whole register

llvm-svn: 279344
This commit is contained in:
Krzysztof Parzyszek 2016-08-19 22:57:23 +00:00
parent 4b401c9e91
commit 4532cc9307

View File

@ -975,6 +975,7 @@ bool RegisterCoalescer::reMaterializeTrivialDef(const CoalescerPair &CP,
NewRC = CommonRC;
DstIdx = 0;
DefMO.setSubReg(0);
DefMO.setIsUndef(false); // Only subregs can have def+undef.
}
}
}