[llvm] [IR] Remove pointer arguments from loop.dependence.{war|raw}.mask (PR #188248)
Benjamin Maxwell via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 13 03:27:56 PDT 2026
MacDue wrote:
> Can you please update the PR description to clarify the justification for this change? The original proposal made sense, but having integer-typed APIs that actually work on pointers is fishy.
It's unclear to me what's fishy here? These intrinsics calculate a mask based only on the address bits of the two pointers, any other details are not relevant. So I think it makes sense that you would extract the addresses first (e.g., with`ptrtoaddr` -- similar to what the LV does for scalar diff checks). This means we don't have to preserve information about the pointer types (with is ultimately not used) to emit these intrinsics in the loop vectorizer.
https://github.com/llvm/llvm-project/pull/188248
More information about the llvm-commits
mailing list