Skip to content

Use of partially written variable during optimized divide fails to simplify #4367

@D0ntPanic

Description

@D0ntPanic

If intermediate stages of an optimized divide use partial variable writes, the expression fails
to simplify into a division expression.

partial_write

Binaries with examples:

partial_write.zip

u8_div_4k_x64.so: See 3, 5, 6, 7, 9, and others
u16_div_4k_x64.so: See 7, 21, 23, 25, and others
i16_div_4k_x64.so: See 3, 5, 6, 7, 9, and others
i8_div_4k_x86.so: See 3, 5, 6, 7, 9, and others
i16_div_4k_x86.so: See 3, 5, 6, 7, 9, and others
u8_div_4k_x86.so: See 3, 5, 6, 7, 9, and others
u16_div_4k_x86.so: See 7, 21, 23, 25, and others

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CoreIssue needs changes to the coreCore: HLILIssue involves High Level ILEffort: LowIssue should take < 1 weekIL OptimizationIssue involving optimization of representation (not correctness)Impact: LowIssue is a papercut or has a good, supported workaround

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions