[llvm-commits] [patch] Instcombine bug - transforms GEP/Bitcast on different address spaces

Rotem, Nadav nadav.rotem at intel.com
Mon Apr 4 13:06:18 PDT 2011


Hi,

Please review the attached patch.

The attached patch fixes a bug in InstCombine. The pass optimizes gep(bitcast ) even when the bitcasts casts away address space info. We crash with an assert in this case.

The attached patch checks that the address space of the bitcasted pointer is the same as the gep ptr.

Nadav
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110404/b8e39b71/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gep_addr.diff
Type: application/octet-stream
Size: 3295 bytes
Desc: gep_addr.diff
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110404/b8e39b71/attachment.obj>


More information about the llvm-commits mailing list