[llvm] r315469 - [X86] Remove MVT::i1 handling code from LowerTRUNCATE
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 11 09:05:05 PDT 2017
Author: ctopper
Date: Wed Oct 11 09:05:05 2017
New Revision: 315469
URL: http://llvm.org/viewvc/llvm-project?rev=315469&view=rev
Log:
[X86] Remove MVT::i1 handling code from LowerTRUNCATE
Summary: I don't think this is necessary with i1 being illegal now.
Reviewers: RKSimon, zvi, guyblank
Reviewed By: RKSimon
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D38784
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=315469&r1=315468&r2=315469&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Wed Oct 11 09:05:05 2017
@@ -16064,14 +16064,6 @@ SDValue X86TargetLowering::LowerTRUNCATE
SDValue In = Op.getOperand(0);
MVT InVT = In.getSimpleValueType();
- if (VT == MVT::i1) {
- assert((InVT.isInteger() && (InVT.getSizeInBits() <= 64)) &&
- "Invalid scalar TRUNCATE operation");
- if (InVT.getSizeInBits() >= 32)
- return SDValue();
- In = DAG.getNode(ISD::ANY_EXTEND, DL, MVT::i32, In);
- return DAG.getNode(ISD::TRUNCATE, DL, VT, In);
- }
assert(VT.getVectorNumElements() == InVT.getVectorNumElements() &&
"Invalid TRUNCATE operation");
More information about the llvm-commits
mailing list