[clang] [InstCombine] Add combines/simplifications for `llvm.ptrmask` (PR #67166)

via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 6 16:15:50 PDT 2023


goldsteinn wrote:

> Since the langref definition is based on GEP, can we use index width instead of pointer width? If you disagree with this, it would still be good if you could add a test where the datalayout has index width < pointer width to show the current semantics.

Any target inmind? But I think ptrwidth makes more sense given that the result is a pointer. It would be awkward to have resize things like knownbits / etc... and would somewhat make ptrmask useless as basically any mask would result in a low-bit only pointer.

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


More information about the cfe-commits mailing list