Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit 3445b00

Browse files
committed
[X86] Remove unneeded MVT::i1 related code from fast isel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316825 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 2956373 commit 3445b00

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/Target/X86/X86FastISel.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3512,16 +3512,6 @@ bool X86FastISel::fastLowerCall(CallLoweringInfo &CLI) {
35123512
report_fatal_error("SSE register return with SSE disabled");
35133513
}
35143514

3515-
// If the return value is an i1 and AVX-512 is enabled, we need
3516-
// to do a fixup to make the copy legal.
3517-
if (CopyVT == MVT::i1 && SrcReg == X86::AL && Subtarget->hasAVX512()) {
3518-
// Need to copy to a GR32 first.
3519-
// TODO: MOVZX isn't great here. We don't care about the upper bits.
3520-
SrcReg = createResultReg(&X86::GR32RegClass);
3521-
BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc,
3522-
TII.get(X86::MOVZX32rr8), SrcReg).addReg(X86::AL);
3523-
}
3524-
35253515
// If we prefer to use the value in xmm registers, copy it out as f80 and
35263516
// use a truncate to move it from fp stack reg to xmm reg.
35273517
if ((SrcReg == X86::FP0 || SrcReg == X86::FP1) &&

0 commit comments

Comments
 (0)