[X86] Replace an impossible if condition with an assert.

llvm-svn: 326167
This commit is contained in:
Craig Topper 2018-02-27 03:50:00 +00:00
parent 00368b6cf9
commit 3a5307a95d

View File

@ -16903,8 +16903,7 @@ SDValue X86TargetLowering::LowerTRUNCATE(SDValue Op, SelectionDAG &DAG) const {
}
// Handle truncation of V256 to V128 using shuffles.
if (!VT.is128BitVector() || !InVT.is256BitVector())
return SDValue();
assert(VT.is128BitVector() && InVT.is256BitVector() && "Unexpected types!");
assert(Subtarget.hasFp256() && "256-bit vector without AVX!");