forked from OSchip/llvm-project
[X86] Replace an impossible if condition with an assert.
llvm-svn: 326167
This commit is contained in:
parent
883b6ee70a
commit
fcaa0323ec
|
@ -16903,8 +16903,7 @@ SDValue X86TargetLowering::LowerTRUNCATE(SDValue Op, SelectionDAG &DAG) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle truncation of V256 to V128 using shuffles.
|
// Handle truncation of V256 to V128 using shuffles.
|
||||||
if (!VT.is128BitVector() || !InVT.is256BitVector())
|
assert(VT.is128BitVector() && InVT.is256BitVector() && "Unexpected types!");
|
||||||
return SDValue();
|
|
||||||
|
|
||||||
assert(Subtarget.hasFp256() && "256-bit vector without AVX!");
|
assert(Subtarget.hasFp256() && "256-bit vector without AVX!");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue