Il-Capitano wrote:

> We have various solutions for caching. But if you don't need to share the 
> cache across passes, just stick a DenseMap somewhere in the pass.

I couldn't really do this, since I'm working in a callback inside 
`AArch64InstrInfo`, so I don't have access to the pass structures. And also, I 
don't want to change the outliner callback API just for a single backend.

I ended up putting the cached values inside `AArch64FunctionInfo` that's 
attached to the machine function. I hope that's okay, but let me know if I 
should do something else.

https://github.com/llvm/llvm-project/pull/236836
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to