summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commitd2f3041c7f60e622c3e14b5b948f06a66ce8e8b8 (patch)
treeac0a43a04d01e48242af1b2e19f3d0cfac859b5a /llvm/lib/CodeGen
parent9918b334514d8d09644682a7af0e1b1e0c4eb894 (diff)
downloadbcm5719-llvm-d2f3041c7f60e622c3e14b5b948f06a66ce8e8b8.tar.gz
bcm5719-llvm-d2f3041c7f60e622c3e14b5b948f06a66ce8e8b8.zip
We only want to zero extend the existing information if the bit width is
actually larger. llvm-svn: 126464
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
index 82b6c4022d7..3cab795baeb 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud