[PATCH] Fix v*i1 store size

Hal Finkel hfinkel at anl.gov
Tue Jan 29 14:06:20 PST 2013


Hello,

Please review the attached patch which fixes the storage size (in bytes) reported by DataLayout and MVT/EVT for v*i1 vectors. The current (incorrect) behavior is to round the total size in bits up and divide by 8. Instead, each element is stored in a separate byte, and so the result should be equal to the number of elements in the vector.

Thanks again,
Hal

-- 
Hal Finkel
Postdoctoral Appointee
Leadership Computing Facility
Argonne National Laboratory
-------------- next part --------------
A non-text attachment was scrubbed...
Name: i1vstoresize.patch
Type: text/x-patch
Size: 2335 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130129/5706871e/attachment.bin>


More information about the llvm-commits mailing list