1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

We only want to zero extend the existing information if the bit width is

actually larger.

llvm-svn: 126464
This commit is contained in:
Cameron Zwarich 2011-02-25 01:10:55 +00:00
parent 9d328484ce
commit aa61fbeebb

View File

@ -269,7 +269,7 @@ FunctionLoweringInfo::GetLiveOutRegInfo(unsigned Reg, unsigned BitWidth) {
if (!LOI->IsValid)
return NULL;
if (BitWidth >= LOI->KnownZero.getBitWidth()) {
if (BitWidth > LOI->KnownZero.getBitWidth()) {
LOI->KnownZero = LOI->KnownZero.zextOrTrunc(BitWidth);
LOI->KnownOne = LOI->KnownOne.zextOrTrunc(BitWidth);
}