[PATCH] Globals in non-zero address spaces might be null

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 26 20:23:44 PDT 2015


> On Aug 26, 2015, at 4:44 PM, Pete Cooper <peter_cooper at apple.com> wrote:
> 
> Hi Philip
> 
> This is an offshoot of the conversation we had here: http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20150824/295815.html <http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20150824/295815.html>
> 
> The attached patch make sure that we only add nonnull attributes to globals in address space 0.  Other address spaces may or may not permit a global to live at address 0, but we have to assume that they might.

Isn’t something that should be target configurable? Any reason for not having TTI with a default behavior which would be the current one, but that targets could customize?

— 
Mehdi

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150826/164c6480/attachment.html>


More information about the llvm-commits mailing list