You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Duplicate of #30126. Also, if it helps you figure out why it does this, it's only a problems with integers, and it does constant fold if the exponent is a power of two. So, the problem must be somewhere inpower_by_squaring.
@NHDaly and I found this the day before juliacon, but forgot to open an issue.
I think @Keno's theory was that the
literal_pow
stuff broke this.Basically constant folding stops for exponents greater than 4.
LLVM actually has our back here though.
It will constant fold for all negative integer powers I think.
But for positive powers it only does 1 extra: 10^4
Was reminded when this came up in https://discourse.julialang.org/t/no-constant-expression-elimination-for-e-g-2-24-1/30964/8
The text was updated successfully, but these errors were encountered: