[all-commits] [llvm/llvm-project] 9d89b0: [WebAssembly] Fix trunc in FastISel (#138479)
Pavel Verigo via All-commits
all-commits at lists.llvm.org
Tue May 6 14:16:57 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9d89b05f1147dc442794186f505e30a27ffe75a7
https://github.com/llvm/llvm-project/commit/9d89b05f1147dc442794186f505e30a27ffe75a7
Author: Pavel Verigo <58272683+pavelverigo at users.noreply.github.com>
Date: 2025-05-06 (Tue, 06 May 2025)
Changed paths:
M llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
A llvm/test/CodeGen/WebAssembly/fast-isel-pr138479.ll
Log Message:
-----------
[WebAssembly] Fix trunc in FastISel (#138479)
Previous logic did not handle the case where the result bit size was
between 32 and 64 bits inclusive. I updated the if-statements for more
precise handling.
An alternative solution would have been to abort FastISel in case the
result type is not legal for FastISel.
Resolves: #64222.
This PR began as an investigation into the root cause of
https://github.com/ziglang/zig/issues/20966.
Godbolt link showing incorrect codegen on 20.1.0:
https://godbolt.org/z/cEr4vY7d4.
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