[LLVMbugs] [Bug 6438] New: many functions that call SelectionDAG::ComputeMaskedBits are broken with respect to vectors

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Feb 26 11:11:19 PST 2010


http://llvm.org/bugs/show_bug.cgi?id=6438

           Summary: many functions that call
                    SelectionDAG::ComputeMaskedBits are broken with
                    respect to vectors
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: micah.villmow at amd.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=4327)
 --> (http://llvm.org/bugs/attachment.cgi?id=4327)
bitcode that causes issue

There are plenty of functions that are failing the following assertion when
using vectors:
assert(BitWidth == Op.getValueType().getScalarType().getSizeInBits() &&
         "Mask size mismatches value type size!");

The reason is that the assertion uses
getValueType().getScalarType().getSizeInBits() and when creating the values,
the calling function only uses getValueType().getSizeInBits(). This works fine
for scalar architectures, but breaks when a native vector type is supported and
these functions are called. 


I'll attach a patch on Monday.

-- 
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