[llvm-dev] LLVM Virtual registers after RA pass?

Joan Lluch via llvm-dev llvm-dev at lists.llvm.org
Fri May 3 10:50:26 PDT 2019


I need to use ‘createVirtualRegister’ for a specific case in my ‘eliminateFrameIndex’ function implementation.

However, whenever that code is executed, I get the assertion "MachineCopyPropagation should be run after register allocation!” at a later stage.

I have seen that at least a couple of backend implementations (including ARM Thumb) create virtual registers in ‘eliminatedFrameIndex’.

What am I missing?, is there something that I need to set for virtual registers to be allowed after the RA pass, and specifically in the ‘eliminateFrameIndex’ function?

Thanks,

Joan Lluch
Puigsacalm, 7 
17458 - Fornells de la Selva
Girona

Tel: 620 28 45 13

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190503/bfb0c6e9/attachment.html>


More information about the llvm-dev mailing list