[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 883b6ee70a
commit fcaa0323ec
1 changed files with 1 additions and 2 deletions

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!");