[PATCH] Fix PR16807

Michael Liao michael.liao at intel.com
Tue Oct 15 09:16:55 PDT 2013


Hi

The attached patch fixes PR16807. The root cause is that the constant
powers-of-2 division lowering code directly translates that division
into target-dependant code and breaks on target without legal operations
supported (VPSRAW on <16 x i16> is only supported on AVX2). This patch
fixes that by lowering them into target-independent one and could
generate correct and efficient code on AVX.

Thanks for review
- Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-PR16807.patch
Type: text/x-patch
Size: 3459 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131015/5e3745a1/attachment.bin>


More information about the llvm-commits mailing list