[llvm-commits] [llvm] r126464 - /llvm/trunk/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp

Cameron Zwarich zwarich at apple.com
Thu Feb 24 17:10:55 PST 2011


Author: zwarich
Date: Thu Feb 24 19:10:55 2011
New Revision: 126464

URL: http://llvm.org/viewvc/llvm-project?rev=126464&view=rev
Log:
We only want to zero extend the existing information if the bit width is
actually larger.

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp?rev=126464&r1=126463&r2=126464&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp Thu Feb 24 19:10:55 2011
@@ -269,7 +269,7 @@
   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);
   }





More information about the llvm-commits mailing list