Skip to content

Conversation

@boomanaiden154
Copy link
Contributor

llvm/llvm-project#171288 removed the SDAG lowering for ceil/ceilf calls. This was causing some errors for us when using webassembly:

Internal Error at third_party/halide/halide/src/WasmExecutor.cpp:2368 Condition failed: instance: Error initializing module: invalid import "env.ceilf"

Explicitly using the intrinsics is still covered by webassembly and given the commenting out of these intrinsics mentions that they were not used due to needing to support LLVM <3.3, I think we can safely enable these now.

llvm/llvm-project#171288 removed the SDAG
lowering for ceil/ceilf calls. This was causing some errors for us when
using webassembly:

Internal Error at third_party/halide/halide/src/WasmExecutor.cpp:2368 Condition failed: instance: Error initializing module: invalid import "env.ceilf"

Explicitly using the intrinsics is still covered by webassembly and
given the commenting out of these intrinsics mentions that they were not
used due to needing to support LLVM <3.3, I think we can safely enable
these now.
@abadams abadams merged commit b6e889d into halide:main Dec 11, 2025
12 of 16 checks passed
@abadams
Copy link
Member

abadams commented Dec 11, 2025

Failures were unrelated

@boomanaiden154 boomanaiden154 deleted the fix-ceilf-lowering branch December 11, 2025 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants