Skip to content

Commit e282118

Browse files
committed
[X86][TTI] Update the return value of X86TTIImpl::getNumberOfRegisters for EGPR
1 parent c5dd10b commit e282118

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/X86/X86TargetTransformInfo.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ unsigned X86TTIImpl::getNumberOfRegisters(unsigned ClassID) const {
169169
if (ST->is64Bit()) {
170170
if (Vector && ST->hasAVX512())
171171
return 32;
172+
if (!Vector && ST->hasEGPR())
173+
return 32;
172174
return 16;
173175
}
174176
return 8;

0 commit comments

Comments
 (0)