Skip to content

Failure to optimize 128-bit division #51510

Open
@GabrielRavier

Description

@GabrielRavier
Bugzilla Link 52168
Version trunk
OS Linux
CC @ecnelises,@RKSimon

Extended Description

__int128 b(__int128 j)
{
return j / 5;
}

This can be inlined into a series of operations avoiding the division, but LLVM just outputs a call to __divti3. GCC does this optimization.

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