mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Use MCPhysReg for table of register encodings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224845 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d7b2788e51
commit
50d894e4d3
@ -165,9 +165,9 @@ public:
|
||||
}
|
||||
|
||||
unsigned ChooseFrameReg(MVT::SimpleValueType VT) const {
|
||||
static const unsigned Candidates[] = { X86::RBP, X86::RAX, X86::RBX,
|
||||
X86::RCX, X86::RDX, X86::RDI,
|
||||
X86::RSI };
|
||||
static const MCPhysReg Candidates[] = { X86::RBP, X86::RAX, X86::RBX,
|
||||
X86::RCX, X86::RDX, X86::RDI,
|
||||
X86::RSI };
|
||||
for (unsigned Reg : Candidates) {
|
||||
if (!std::count(BusyRegs.begin(), BusyRegs.end(), Reg))
|
||||
return convReg(Reg, VT);
|
||||
|
Loading…
Reference in New Issue
Block a user