[cfe-dev] Performance alloca + memcpy vs alloca + inline
Stefan de Konink
stefan at konink.de
Sat Feb 1 13:34:10 PST 2014
Hi,
While I was looking for vectorisation solutions I stumbled of a strange
performance difference between clang and gcc.
The attached code can be compile with:
clang -DSINGLE -std=c99 -O3 expanding-inline-generic.c
(poor performance > ~)
vs
clang -DINLINE -std=c99 -O3 expanding-inline-generic.c
(performs fast < 1s)
Using GCC 4.7/4.8 both examples have no noticible differences.
Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: expanding-inline-generic.c
Type: text/x-csrc
Size: 1138 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140201/c0c67a82/attachment.c>
More information about the cfe-dev
mailing list