网站首页
编程语言
数据库
系统相关
其他分享
编程问答
pbqp
2024-08-08
LLVM中四种寄存器分配算法及开启选项
在LLVM编译器中,一共有四种寄存器分配算法:BasicRegisterAllocator、FastRegisterAllocator、PBQPRegisterAllocator、GreedyRegisterAllocator。FastRegisterAllocator这种分配器是局部的,作用于各个基本块,它尽量地将值保持在寄存器中并重用它们。BasicRegisterAl