Missed optimization in math expression: missing cube of the sum formula #34945
Labels
bugzilla
Issues migrated from bugzilla
floating-point
Floating-point math
llvm:codegen
llvm:optimizations
Extended Description
clang(trunk) with '--std=c++17 -O3 -march=native -ffast-math' flags for this code:
generates this assembly:
But there is formula: aaa + 3.0aab + 3.0abb + bbb == (a + b)^3. And it can be compiled in faster way.
The text was updated successfully, but these errors were encountered: