Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to optimize 128-bit division #51510

Open
GabrielRavier opened this issue Oct 13, 2021 · 0 comments
Open

Failure to optimize 128-bit division #51510

GabrielRavier opened this issue Oct 13, 2021 · 0 comments
Labels
bugzilla Issues migrated from bugzilla

Comments

@GabrielRavier
Copy link
Contributor

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.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla
Projects
None yet
Development

No branches or pull requests

1 participant