Skip to content

SCCP miscompiles sitofp(undef) #7312

@sunfishcode

Description

@sunfishcode
Bugzilla Link 6940
Resolution FIXED
Resolved on Apr 26, 2010 13:21
Version trunk
OS All

Extended Description

On this testcase:

define double @​foo() {
%t = sitofp i32 undef to double
ret double %t
}

SCCP changes the sitofp operand to undef. This is over-aggressive, since there exist double values which sitofp cannot produce. For comparison, instcombine on this testcase changes the operand to 0.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzilla

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions