Alberto Barbaro via llvm-dev
2019-Mar-06 17:37 UTC
[llvm-dev] Replace all memory access with registry access
Hi all, Is there any way for converting any instruction that is loading or storing in memory into an instruction that just deal with registries? I'm not even sure if it is possible. Any suggestion? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190306/b3428c7b/attachment.html>
Vedant Kumar via llvm-dev
2019-Mar-06 18:23 UTC
[llvm-dev] Replace all memory access with registry access
Hi, Could you share some more details about what you're trying to accomplish? Generally speaking, some instructions necessarily load/store from/to memory (e.g. updates to a shared memory region). best, vedant> On Mar 6, 2019, at 9:37 AM, Alberto Barbaro via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Hi all, > Is there any way for converting any instruction that is loading or storing in memory into an instruction that just deal with registries? > > I'm not even sure if it is possible. Any suggestion? > > Thanks > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
Alberto Barbaro via llvm-dev
2019-Mar-06 19:47 UTC
[llvm-dev] Replace all memory access with registry access
Hi, Thanks for getting back to me. I'd like to understand if it possible to avoid instructions that relies on memory address and instead have all the necessary data inside registers. I think this would simplify a lot analysis on the LLVM IR.. Thanks again On Wed, Mar 6, 2019, 18:23 Vedant Kumar <vsk at apple.com> wrote:> Hi, > > Could you share some more details about what you're trying to accomplish? > > Generally speaking, some instructions necessarily load/store from/to > memory (e.g. updates to a shared memory region). > > best, > vedant > > > On Mar 6, 2019, at 9:37 AM, Alberto Barbaro via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > > > > Hi all, > > Is there any way for converting any instruction that is loading or > storing in memory into an instruction that just deal with registries? > > > > I'm not even sure if it is possible. Any suggestion? > > > > Thanks > > _______________________________________________ > > LLVM Developers mailing list > > llvm-dev at lists.llvm.org > > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190306/d11afa1a/attachment.html>
Andreu Carminati via llvm-dev
2019-Mar-06 20:00 UTC
[llvm-dev] Replace all memory access with registry access
Hi, There is a pass called mem2reg (Mem2Reg.cpp) which you can take a look. I used this pass in a project to reduce accesses to memory. best, Andreu On Wed, Mar 6, 2019 at 2:44 PM Alberto Barbaro via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Hi all, > Is there any way for converting any instruction that is loading or storing > in memory into an instruction that just deal with registries? > > I'm not even sure if it is possible. Any suggestion? > > Thanks > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190306/24581aaa/attachment.html>