[llvm-commits] Patch for scalarized division.

Sjodin, Jan Jan.Sjodin at amd.com
Fri Nov 6 13:39:23 PST 2009


In LegalizeVectorOps the resulting scalar divisions must not be
generated if they have undefined vector elements as operands. This may
be unsafe because the divides can cause division by zero exceptions,
and also slows down the code. This patch attempts to fix this issue by
checking if the operands are defined or not. I would be grateful if
someone could review this patch. Thanks!

- Jan Sjodin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0015_scalarized_div.diff
Type: application/octet-stream
Size: 6912 bytes
Desc: 0015_scalarized_div.diff
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20091106/eec63aa9/attachment.obj>


More information about the llvm-commits mailing list