mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-12 07:40:58 +00:00
Fix a regression caused by the previous patch
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18449 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c60c334612
commit
223d4c4b3a
@ -802,9 +802,11 @@ void X86ISel::InsertFPRegKills() {
|
||||
MachineOperand& MO = I->getOperand(i);
|
||||
if (MO.isRegister() && MO.getReg()) {
|
||||
unsigned Reg = MO.getReg();
|
||||
if (MRegisterInfo::isVirtualRegister(Reg))
|
||||
if (RegMap.getRegClass(Reg)->getSize() == 10)
|
||||
if (MRegisterInfo::isVirtualRegister(Reg)) {
|
||||
unsigned RegSize = RegMap.getRegClass(Reg)->getSize();
|
||||
if (RegSize == 10 || RegSize == 8)
|
||||
goto UsesFPReg;
|
||||
}
|
||||
}
|
||||
}
|
||||
// If we haven't found an FP register use or def in this basic block, check
|
||||
|
Loading…
x
Reference in New Issue
Block a user