[PATCH] D3002: 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 via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 10 17:15:03 PDT 2015


arsenm added a comment.

This same problem was reported here recently and this patch fixes it:

https://github.com/HSAFoundation/HLC-HSAIL-Development-LLVM/issues/17

The pointer sizes and formats are incompatible so there isn't really anything sensible to do other than to do this ptrtoint / inttoptr pair, so this makes sense to me.


http://reviews.llvm.org/D3002





More information about the llvm-commits mailing list