Skip to content

Dealing with NaN in NumericOpsExpOpt #60

@mdashti

Description

@mdashti

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions