mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-15 07:59:50 +00:00
We only want to zero extend the existing information if the bit width is
actually larger. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126464 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
57f1e2cee0
commit
33b554795d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user