Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

bug?

H__W
Beginner
117 Views

The code below performs very poorly if compiled with ICC.
I am observing a 2.3X slowdown (!) compared to GCC 8.2

#include <stdint.h>

 void demux1 (
    const int8_t * const __restrict__ in,
    const int h,
    int8_t * const __restrict__ out)
{
    for (int i = 0; i < h; ++i)
        out = in[0 + 2 * i];
}

Have a look yourself on godbolt, the issue seems quite obvious,
especially by comparing ICC vs GCC produced assembly.
(-march=core-avx2 -Ofast -DNDEBUG)

Any clue?

0 Kudos
2 Replies
Viet_H_Intel
Moderator
117 Views

This is duplicate topic.

H__W
Beginner
117 Views

Yes. How can I remove this post?

Reply