Merge raw_bitcast and bitcast (#5175)
- Allow bitcast for vectors with differing lane widths - Remove raw_bitcast IR instruction - Change all users of raw_bitcast to bitcast - Implement support for no-op bitcast cases across backends This implements the second step of the plan outlined here: https://github.com/bytecodealliance/wasmtime/issues/4566#issuecomment-1234819394
This commit is contained in:
@@ -1078,17 +1078,7 @@ impl<'a> Verifier<'a> {
|
||||
let typ = self.func.dfg.ctrl_typevar(inst);
|
||||
let value_type = self.func.dfg.value_type(arg);
|
||||
|
||||
if typ.lane_bits() != value_type.lane_bits() {
|
||||
errors.fatal((
|
||||
inst,
|
||||
format!(
|
||||
"The bitcast argument {} has a lane type of {} bits, which doesn't match an expected type of {} bits",
|
||||
arg,
|
||||
value_type.lane_bits(),
|
||||
typ.lane_bits()
|
||||
),
|
||||
))
|
||||
} else if typ.bits() != value_type.bits() {
|
||||
if typ.bits() != value_type.bits() {
|
||||
errors.fatal((
|
||||
inst,
|
||||
format!(
|
||||
|
||||
Reference in New Issue
Block a user