[llvm-dev] Manipulate Register allocation in basic block level
Quentin Colombet via llvm-dev
llvm-dev at lists.llvm.org
Fri Sep 8 14:09:52 PDT 2017
We didn’t have any use case for this kind of things, so no, we don’t have anything to do that.
What you could do is split the live-ranges you are interested in in the place you care and use TargetRegisterInfo::getRegAllocationHints to bias the allocation the way you want.
> On Sep 5, 2017, at 6:09 AM, Nisal Menuka via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> Is it possible to annotate basic blocks in order to manipulate them in
> LLVM backend with fine granularity?
> Eg: I want to reserve registers for some parts of the code, therefore
> need to stop register allocator from using some registers only in
> specific basic blocks.
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev