So far, SROA could only handle convertible pointer pairs if they are in the
same address space. Just like no-op cast, a no-op addrspacecast also changes
no bits, it could also be used to convert pointer pairs from different address
spaces. That benefits infer-address-spaces pass to propagate address spaces.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Revise the formatting.
Updating D81670: [TTI] Expose isNoopAddrSpaceCast from TLI.
[SROA] Teach SROA to recognize no-op addrspacecast.
Comment Actions
That may be a little bit challenging as so far no-op addrspacecast is target-specific. There may be no TTI available when bitcast is constructed.
Comment Actions
Yes, that is the point. You don't need TTI to use it. Addrspace bitcast will be just a dumb bit reinterpret, not something that may change the value like addrspacecast
clang-format: please reformat the code