[all-commits] [llvm/llvm-project] cf8b0a: [WebAssembly] Fix v8i16-to-v8f32 uitofp cost (#212...
Anutosh Bhat via All-commits
all-commits at lists.llvm.org
Tue Jul 28 22:24:47 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cf8b0ad96a57570695fba02013590939ffe36af9
https://github.com/llvm/llvm-project/commit/cf8b0ad96a57570695fba02013590939ffe36af9
Author: Anutosh Bhat <andersonbhat491 at gmail.com>
Date: 2026-07-29 (Wed, 29 Jul 2026)
Changed paths:
M llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.cpp
A llvm/test/Analysis/CostModel/WebAssembly/cast.ll
Log Message:
-----------
[WebAssembly] Fix v8i16-to-v8f32 uitofp cost (#212501)
I think there was a wrong duplication here. The WebAssembly SIMD
conversion cost table accidentally duplicated the
`UINT_TO_FP` entry for `v8i8` to `v8f32`. As a result, the unsigned
`v8i16` to `v8f32` conversion missed the target-specific table entry and
fell back to the generic cost of 5 instead of the intended cost of 10.
I've added ` llvm/test/Analysis/CostModel/WebAssembly/cast.ll` which I
think is good here as it would help test other casting errors in the
future too.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list