[PATCH] D121787: [VectorCombine] Avoid crossing address space boundaries

Artem Belevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 16 13:04:15 PDT 2022


tra added a comment.

> It's unclear to me whether we need to bail in this situation as I've
> done, or whether we can issue an addrspace cast, at least under certain
> circumstances.

You could use `TTI.isNoopAddrSpaceCast()` to allow some other combinations.
E.g. if both AS can be cast to generic AS, then we may be allowed to carry on, after adding appropriate ASC to generic AS.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121787/new/

https://reviews.llvm.org/D121787



More information about the llvm-commits mailing list