virtualization-lms-core
virtualization-lms-core copied to clipboard
Dealing with NaN in NumericOpsExpOpt
Currently we have trivial optimization of converting "X = Y * 0" to "X = 0" in NumericOpsExpOpt trait and it works fine for integers, but it is not a correct optimization considering IEEE standard for floating point operations (NaN * 0 = NaN). I think, disabling this optimization for Double and Float numbers is the correct solution. Does anyone have any comments?