Skip to content

Commit 57c5ca4

Browse files
committed
Remove custom bf16 lowering from the X86ISelLoweringCall
1 parent bb19191 commit 57c5ca4

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

llvm/lib/Target/X86/X86ISelLoweringCall.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,6 @@ MVT X86TargetLowering::getRegisterTypeForCallingConv(LLVMContext &Context,
123123
!Subtarget.hasX87())
124124
return MVT::i32;
125125

126-
if (isTypeLegal(MVT::f16)) {
127-
if (VT.isVector() && VT.getVectorElementType() == MVT::bf16)
128-
return getRegisterTypeForCallingConv(
129-
Context, CC, VT.changeVectorElementType(MVT::f16));
130-
131-
if (VT == MVT::bf16)
132-
return MVT::f16;
133-
}
134-
135126
return TargetLowering::getRegisterTypeForCallingConv(Context, CC, VT);
136127
}
137128

0 commit comments

Comments
 (0)