Skip to content

Commit 78cdcd6

Browse files
committed
Don't limit vector size
1 parent 73fd311 commit 78cdcd6

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/common.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,7 @@ pub fn clif_type_from_ty<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) -> Option<types:
7272
tcx.layout_of(ParamEnv::reveal_all().and(ty)).unwrap(),
7373
);
7474
let lane_type = clif_type_from_ty(tcx, lane_type.ty)?;
75-
let simd_type = lane_type.by(u16::try_from(lane_count).unwrap());
76-
if simd_type.map(|t| t.bits()) == Some(128) {
77-
return simd_type;
78-
} else {
79-
return None; // Not yet implemented
80-
}
75+
return lane_type.by(u16::try_from(lane_count).unwrap());
8176
}
8277
_ => return None,
8378
})

0 commit comments

Comments
 (0)