[PATCH] SROA fix to avoid invalid bitcast generation when converting a load from a double pointer bitcasted with an address space change of the pointee pointee

Matt Arsenault arsenm2 at gmail.com
Fri Mar 7 11:35:31 PST 2014

On Mar 7, 2014, at 11:18 AM, Chandler Carruth <chandlerc at gmail.com> wrote:

> 1) I don't understand why we don't allow bitcasting between address spaces when they are the same size. We have the datalayout embedded in the module, we should be able to verify this, etc etc. Breaking the same-size "as if" semantics of bitcast seems a pointless limitation.

Pointers with different address spaces may have different representations and could need a nontrivial transformation between them.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140307/cc7e45a4/attachment.html>

More information about the llvm-commits mailing list