Use u32 in Type API (#4280)
Move from passing and returning u8 and u16 values to u32 in many of the functions. This removes a number of type conversions and gives a small compilation time speedup, around ~0.7% on my aarch64 machine. Copyright (c) 2022, Arm Limited.
This commit is contained in:
@@ -1646,7 +1646,7 @@ impl<'a> Verifier<'a> {
|
||||
// We must be specific about the opcodes above because other instructions are using
|
||||
// the same formats.
|
||||
let ty = self.func.dfg.value_type(arg);
|
||||
if u16::from(lane) >= ty.lane_count() {
|
||||
if lane as u32 >= ty.lane_count() {
|
||||
errors.fatal((
|
||||
inst,
|
||||
self.context(inst),
|
||||
|
||||
Reference in New Issue
Block a user