mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
Tidy a bit more.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67617 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fc9d161f16
commit
b3b4484e3d
@ -4929,15 +4929,15 @@ GetRegistersForValue(SDISelAsmOperandInfo &OpInfo,
|
||||
|
||||
// Otherwise, if this was a reference to an LLVM register class, create vregs
|
||||
// for this reference.
|
||||
if (PhysReg.second != 0) {
|
||||
RegVT = *PhysReg.second->vt_begin();
|
||||
if (const TargetRegisterClass *RC = PhysReg.second) {
|
||||
RegVT = *RC->vt_begin();
|
||||
if (OpInfo.ConstraintVT == MVT::Other)
|
||||
ValueVT = RegVT;
|
||||
|
||||
// Create the appropriate number of virtual registers.
|
||||
MachineRegisterInfo &RegInfo = MF.getRegInfo();
|
||||
for (; NumRegs; --NumRegs)
|
||||
Regs.push_back(RegInfo.createVirtualRegister(PhysReg.second));
|
||||
Regs.push_back(RegInfo.createVirtualRegister(RC));
|
||||
|
||||
OpInfo.AssignedRegs = RegsForValue(TLI, Regs, RegVT, ValueVT);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user