[LLVMbugs] [Bug 6572] New: DAGCombiner.cpp incorrectly calls APInt::getLowBitsSet
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Mar 10 10:21:44 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=6572
Summary: DAGCombiner.cpp incorrectly calls APInt::getLowBitsSet
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: micah.villmow at amd.com
CC: llvmbugs at cs.uiuc.edu
====
//depot/stg/opencl/drivers/opencl/compiler/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp#19
-
/home/mvillmow/Source/stg/opencl/drivers/opencl/compiler/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
====
@@ -5344,7 +5344,7 @@
if (SimplifyDemandedBits(Value,
APInt::getLowBitsSet(
Value.getValueType().getScalarType().getSizeInBits(),
- ST->getMemoryVT().getSizeInBits())))
+
ST->getMemoryVT().getScalarType().getSizeInBits())))
return SDValue(N, 0);
}
The problem is that ST->getMemoryVT().getSizeInBits() doesn't match
Value.getValueType().getScalarType().getSizeInBits when ST is a vector.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list