Loop isn't optimized in pow() with constant power #34947
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-slow
Issue: Problems and improvements with respect to performance of generated code.
Testcase:
Produces the following asm in release mode:
I would expect it to generate straight-line code with just three multiplies.
It's possible this will be fixed by upgrading LLVM; there have been some recent changes to unrolling heuristics.
The text was updated successfully, but these errors were encountered: