File tree 1 file changed +1
-12
lines changed
1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -618,7 +618,6 @@ BitVector X86RegisterInfo::getReservedRegs(const MachineFunction &MF) const {
618
618
}
619
619
620
620
unsigned X86RegisterInfo::getNumSupportedRegs (const MachineFunction &MF) const {
621
- const X86Subtarget &ST = MF.getSubtarget <X86Subtarget>();
622
621
// All existing Intel CPUs that support AMX support AVX512 and all existing
623
622
// Intel CPUs that support APX support AMX. AVX512 implies AVX.
624
623
//
@@ -635,17 +634,7 @@ unsigned X86RegisterInfo::getNumSupportedRegs(const MachineFunction &MF) const {
635
634
(X86::K6_K7 + 1 == X86::TMMCFG) &&
636
635
(X86::TMM7 + 1 == X86::NUM_TARGET_REGS) &&
637
636
" Register number may be incorrect" );
638
-
639
- bool HasAVX = ST.hasAVX ();
640
- bool HasAVX512 = ST.hasAVX512 ();
641
- bool HasAMX = ST.hasAMXTILE ();
642
- if (HasAMX)
643
- return X86::TMM7 + 1 ;
644
- if (HasAVX512)
645
- return X86::K6_K7 + 1 ;
646
- if (HasAVX)
647
- return X86::YMM15 + 1 ;
648
- return X86::YMM0;
637
+ return X86::NUM_TARGET_REGS;
649
638
}
650
639
651
640
bool X86RegisterInfo::isArgumentRegister (const MachineFunction &MF,
You can’t perform that action at this time.
0 commit comments