[all-commits] [llvm/llvm-project] c62dab: [WebAssembly] Avoid `bit_cast` when printing f32 a...
Dan Gohman via All-commits
all-commits at lists.llvm.org
Fri Feb 26 14:19:54 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c62dabc3f501d3c60846bb6259113990d4f02e75
https://github.com/llvm/llvm-project/commit/c62dabc3f501d3c60846bb6259113990d4f02e75
Author: Dan Gohman <dev at sunfishcode.online>
Date: 2021-02-26 (Fri, 26 Feb 2021)
Changed paths:
M llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyInstPrinter.cpp
Log Message:
-----------
[WebAssembly] Avoid `bit_cast` when printing f32 and f64 immediates
Use `APInt` to convert a 32-bit or 64-bit immediate to an `APFloat` rather than
`bit_cast` to a `float` or `double` to avoid going through host floating-point and
potentially changing the bit pattern of NaNs.
Differential Revision: https://reviews.llvm.org/D97490
More information about the All-commits
mailing list