[]PATCH A bug in DAG Combiner caused by undef mask

Hao Liu Hao.Liu at arm.com
Thu May 9 19:27:17 PDT 2013


Hi,

 

Please consider a patch to fix PR15950:
http://llvm.org/bugs/show_bug.cgi?id=15950. 

A function partitionShuffleOfConats tries to turn a shuffle with undef mask
of two concats into a single concat, but it doesn't consider undef a masks,
whose value is -1 and will cause an overflow in an unsigned type variable. 

 

To fix this bug, we just need to consider two more situations for a
concatenated vector: all masks are undef, mixed undef and general masks. The
former situation is resolved by adding an undef vector. The latter situation
is resolved by directly bailing out.

 

Thanks,

-Hao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130510/5ae4445b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DAGComb-overflow-5-10.patch
Type: application/octet-stream
Size: 2634 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130510/5ae4445b/attachment.obj>


More information about the llvm-commits mailing list