Skip to content

Commit f485764

Browse files
sstricklCommit Queue
authored and
Commit Queue
committed
[vm/compiler] Restore old definition of BoxLanesInstr::ComputeType().
TEST=lib/typed_data/float32x4 lib/typed_data/int32x4 on RISCV. Fixes: #55040 Cq-Include-Trybots: luci.dart.try:vm-aot-linux-debug-simriscv64-try,vm-linux-debug-simriscv64-try Change-Id: I445195d12bbb209209d6958dbfcbfc634422ae6a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/354842 Commit-Queue: Tess Strickland <[email protected]> Auto-Submit: Tess Strickland <[email protected]> Commit-Queue: Martin Kustermann <[email protected]> Reviewed-by: Martin Kustermann <[email protected]>
1 parent 7342d01 commit f485764

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

runtime/vm/compiler/backend/type_propagator.cc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1807,7 +1807,17 @@ CompileType BoxInstr::ComputeType() const {
18071807
}
18081808

18091809
CompileType BoxLanesInstr::ComputeType() const {
1810-
return CompileType::FromUnboxedRepresentation(from_representation());
1810+
switch (from_representation()) {
1811+
case kUnboxedFloat:
1812+
return CompileType::FromCid(kFloat32x4Cid);
1813+
case kUnboxedDouble:
1814+
return CompileType::FromCid(kFloat64x2Cid);
1815+
case kUnboxedInt32:
1816+
return CompileType::FromCid(kInt32x4Cid);
1817+
default:
1818+
UNREACHABLE();
1819+
return CompileType::Dynamic();
1820+
}
18111821
}
18121822

18131823
CompileType ExtractNthOutputInstr::ComputeType() const {

0 commit comments

Comments
 (0)