We only want to zero extend the existing information if the bit width is
authorCameron Zwarich <zwarich@apple.com>
Fri, 25 Feb 2011 01:10:55 +0000 (01:10 +0000)
committerCameron Zwarich <zwarich@apple.com>
Fri, 25 Feb 2011 01:10:55 +0000 (01:10 +0000)
actually larger.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126464 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp

index 82b6c4022d7b5738ea5efc036c5497f64f949402..3cab795baeb7d9a41d30bb5bd7c11796ab497b06 100644 (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);
   }