[llvm-dev] Is it possible to avoid inserting spill/split code in certain instruction sequence in RA?

Krzysztof Parzyszek via llvm-dev llvm-dev at lists.llvm.org
Mon May 9 11:35:48 PDT 2016

On 5/9/2016 1:30 PM, Dongrui She via llvm-dev wrote:
> I am working on an out-of-tree target. I am wondering if it is possible
> to force the register allocator (and/or spiller) to not break certain
> instruction sequence.
> For example:
> phys_reg = MI1 vreg1
> vreg 2 = MI2 phys_reg
> Is there a way to tell RA/spiller not to insert COPY or spill between
> MI1 and MI2?

You can make a pseudo-instruction that corresponds to the combination 
MI1/MI2, then expand it into the actual instructions in 


Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, 
hosted by The Linux Foundation

More information about the llvm-dev mailing list