From aa61fbeebbb8dad20b7e0cf27d35d850e9058e30 Mon Sep 17 00:00:00 2001 From: Cameron Zwarich Date: Fri, 25 Feb 2011 01:10:55 +0000 Subject: [PATCH] We only want to zero extend the existing information if the bit width is actually larger. llvm-svn: 126464 --- lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp b/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp index 82b6c4022d7..3cab795baeb 100644 --- a/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp +++ b/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp @@ -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); }