Do forceCastToUInt32 and forceCastToFloat still serve a purpose? #49787
Labels
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
untriaged
New issue has not been triaged by the area owner
The two functions in
compiler.hpp
are used sparsely (~20 uses between the two of them) throughout the Jit for performing the specified conversions. The comments on them, however, indicate they may be working around problems in compilers from over 15 years ago:I am thus wondering if those could be safely deleted and the normal C++ casts used instead.
Note that we may still want some casting indirection layer, for unified behavior across platforms. It is unclear to me if deleting these functions will make it harder to introduce this layer.
The text was updated successfully, but these errors were encountered: