[PATCH] D41114: Look through address space casts in IsConstantOffsetFromGlobal()
Alexander Richardson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 12 15:00:12 PST 2017
arichardson added a comment.
True, I didn't think of that. For us this will almost always work without adding an additional offset but I am not sure what the correct way to fix this is.
Would it make sense to add a function like `canPerformConstantAddrSpaceCast(unsigned FromAS, unsigned ToAS)` to DataLayout?
https://reviews.llvm.org/D41114
More information about the llvm-commits
mailing list