[PATCH] Fix the failure exposed by checking constant integer argument range

Jiangning Liu liujiangning1 at gmail.com
Mon Nov 25 23:04:23 PST 2013


Hi,

Attached patches are to fix the failure exposed by checking constant
integer argument range.

The LowerVECTOR_SHUFFLE is to cover the following two cases,
1) the 1st operand of VDUPlane is EXTRACT_SUBVECTOR
2) the 1st operand of VDUPlane is CONCAT_VECTORS, for which the 2nd operand
is UNDEF.

The EXTRACT_SUBVECTOR and CONCAT_VECTORS can be optimized away accordingly,
so the patterns defined in .md file can be simplified. Some of the useless
patterns are removed as well.

In front-end, the constant int range checking is fixed, and added more test
cases to cover both the upbound and lowbound values.

-- 
Thanks,
-Jiangning
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131126/64392ba8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: const-range-check-clang.patch
Type: application/octet-stream
Size: 63603 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131126/64392ba8/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: const-range-check-llvm.patch
Type: application/octet-stream
Size: 169622 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131126/64392ba8/attachment-0001.obj>


More information about the llvm-commits mailing list