[PATCH] D45748: [RISCV] Add peepholes for Global Address lowering patterns

Alex Bradbury via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 24 23:21:05 PDT 2018


asb added a comment.

In https://reviews.llvm.org/D45748#1111581, @sabuasal wrote:

> Yes.  Are we still OK with committing this patch as is? I plan to add a test case that shows the peephole's in ability to handle a GlobalAddress uses at multiple blocks then commit this patch.
>
> After that I'll look into doing all of this in a Machine Function Pass to handle all the corner cases. If it looks good we can revert this patch and keep the pass.
>
> Does that sound like a good plan?


Yes, I'm happy to land this patch as-is. Probably stick a TODO comment near the peephole implementation indicating that we expect a MachineFunctionPass would be better, and linking to this review thread. Thanks for all your work on this.


https://reviews.llvm.org/D45748





More information about the llvm-commits mailing list