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
GCC's generated assembly is increasing rax, with each iteration (total 32 iterations (if increasing by 1) or 8 (if increasing by 4)), whereas Clang is adding 4, with each iteration (total 8 iterations). Both seems nearly identical in terms of size, so I don't see any problem here.
https://godbolt.org/z/o6cf889oG
Even ignoring the fact GCC's code is smaller, there is an instruction that is not being used that can make this happen faster:
repstosd
The text was updated successfully, but these errors were encountered: