[llvm] [SCEVAA] Allowing to subtract two inttoptrs with different pointer bases (PR #91453)

via llvm-commits llvm-commits at lists.llvm.org
Tue May 28 04:13:48 PDT 2024


csstormq wrote:

> Why was this closed? The patch looks good to me. I'd only suggest to write it in a way that either both pointers are used with ptrtoint or neither, so we can't end up with a ptr + int mix (not entirely sure whether it's possible for just one of the conversions to fail).

@nikic I'm sorry for that due to misunderstanding your meaning. I am very gald that this patch is beneficial. This pull request has been reopened. Thank you for your feedback.

https://github.com/llvm/llvm-project/pull/91453


More information about the llvm-commits mailing list