aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2011-02-25 01:10:55 +0000
committerCameron Zwarich <zwarich@apple.com>2011-02-25 01:10:55 +0000
commit33b554795def5cd50f961721acbb33246226824b (patch)
tree0bb4b808db4814447ceb640c95b7c001dd5b60d1 /lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
parent57f1e2cee06f9b57995727d786aeb1031c5376bd (diff)
downloadexternal_llvm-33b554795def5cd50f961721acbb33246226824b.zip
external_llvm-33b554795def5cd50f961721acbb33246226824b.tar.gz
external_llvm-33b554795def5cd50f961721acbb33246226824b.tar.bz2
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
Diffstat (limited to 'lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp b/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
index 82b6c40..3cab795 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);
}