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
This doesn’t need to be a proposal. If you can write the optimization for the compiler and prove it works, that’s sufficient.
Hm, okey =)
Let me try this on a weekend. Can you please help me, im newbie in golang core code - where can I find anything about panicIndex and its optimisation (It is not callable in for I = 0; I < len(s); I++ f.e.)?
If anyone has an idea, help me with this please.
Optimizations like this are generally done in the prove pass, in cmd/compile/internal/ssa/prove.go.
Modifying that code is not for the feint of heart. There are lots of tricky details like getting the behavior on overflow/underflow correct.