[llvm-commits] [llvm] r98188 - /llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Dan Gohman gohman at apple.com
Wed Mar 10 13:04:53 PST 2010


Author: djg
Date: Wed Mar 10 15:04:53 2010
New Revision: 98188

URL: http://llvm.org/viewvc/llvm-project?rev=98188&view=rev
Log:
Fix another bitwidth calculation to handle vector types; based on a
patch by Micah Villmow for PR6572.

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

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=98188&r1=98187&r2=98188&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Wed Mar 10 15:04:53 2010
@@ -5409,7 +5409,7 @@
     if (SimplifyDemandedBits(Value,
                              APInt::getLowBitsSet(
                                Value.getValueType().getScalarType().getSizeInBits(),
-                               ST->getMemoryVT().getSizeInBits())))
+                               ST->getMemoryVT().getScalarType().getSizeInBits())))
       return SDValue(N, 0);
   }
 





More information about the llvm-commits mailing list