[PATCH] D31924: SROA: Allow eliminating addrspacecasted allocas

Chandler Carruth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 30 22:39:12 PDT 2017


chandlerc added a comment.

In https://reviews.llvm.org/D31924#735918, @arsenm wrote:

> In https://reviews.llvm.org/D31924#733213, @chandlerc wrote:
>
> > What about approaching this more from the inference perspective? Could we embed the inference into the iteration of SROA without shifting the restrictions so much?
>
>
> I'm not sure exactly what you mean by this. Do you mean somehow merging InferAddressSpaces and SROA?


In a limited form...

Essentially, expose utilities to infer address spaces which can be shared with the InferAddressSpaces pass but can also be used to infer address spaces for allocas as SROA promotes their uses into SSA registers.


https://reviews.llvm.org/D31924





More information about the llvm-commits mailing list