[llvm] [IPO] Added attributor for identifying invariant loads (PR #141800)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 3 15:49:23 PDT 2025
zGoldthorpe wrote:
> > No, this file is target agnostic so all target related stuff can be here. If anything target related needed, it has to go through TTI hook.
>
> Yeah, that's what I meant. `TTI::isGlobalConstantsAddressSpace(unsigned)` if such a thing doesn't already exist
I don't think such a thing already exists, but I feel like adding such support would make more sense as a separate PR. I could be wrong, though.
https://github.com/llvm/llvm-project/pull/141800
More information about the llvm-commits
mailing list