Xiangyang Guo via llvm-dev
2016-Jan-20 14:34 UTC
[llvm-dev] a question about register allocator
Hi, All, Suppose there are a huge number of registers, for example, 1024 or 4096 registers available, but the IR is relatively small. In this case the registers should satisfy the register allocation without any spill and reload. However, I see sometimes there is still spill and reload. I don't want spill and reload happening in this case. Can I just go to inlineSpiller.cpp and make function collectRegsToSpill() as an empty function? I don't fully understand what side effect can be caused. Or is there any other way to make register allocator not to spill and refill in this case? Thanks. Any suggestion is appreciable. Regards, Xiangyang -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160120/fd9435ef/attachment.html>