search for: v6gih98b

Displaying 1 result from an estimated 1 matches for "v6gih98b".

2020 Aug 23
3
clang performing worse than gcc for this loop
I am analyzing a clang 10.0.0 vs gcc 7.3 performance difference that I can reproduce in the following test. unsigned foo(unsigned t1, unsigned t2, int count, int step) { unsigned tmp = 0; int state = 0; for (int i = 0 ; i < count ; i += step) { state++; if (state > 5) state = 0; if (state == 3) tmp += t2; } return tmp; }