[PATCH] D136882: ConstantFold: Fold out compare of addrspacecasted null with global

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 28 09:47:53 PDT 2022


arsenm added a comment.

In D136882#3892296 <https://reviews.llvm.org/D136882#3892296>, @jdoerfert wrote:

> Do we have a target hook `isNullPtrValid(unsigned AS)`?

No. I would like that information to be encoded in the data layout. I was hoping I could get this fold without doing that much larger change


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136882/new/

https://reviews.llvm.org/D136882



More information about the llvm-commits mailing list