Revert non-power-of-two vector restriction
This commit is contained in:
parent
4f20caa625
commit
79c5fa1f0c
6 changed files with 2 additions and 40 deletions
|
@ -732,11 +732,6 @@ impl<'tcx> LayoutCx<'tcx, TyCtxt<'tcx>> {
|
|||
// Can't be caught in typeck if the array length is generic.
|
||||
if e_len == 0 {
|
||||
tcx.sess.fatal(&format!("monomorphising SIMD type `{}` of zero length", ty));
|
||||
} else if !e_len.is_power_of_two() {
|
||||
tcx.sess.fatal(&format!(
|
||||
"monomorphising SIMD type `{}` of non-power-of-two length",
|
||||
ty
|
||||
));
|
||||
} else if e_len > MAX_SIMD_LANES {
|
||||
tcx.sess.fatal(&format!(
|
||||
"monomorphising SIMD type `{}` of length greater than {}",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue