[llvm-dev] Clang Optimizer freaks out on "simple" goto code?

Philip Pfaffe via llvm-dev llvm-dev at lists.llvm.org
Mon Dec 5 04:08:33 PST 2016


Hi Dennis,

While Clang's code is significantly larger,  that is probably on purpose:
Clang has vectorized the goto-loop.

To validate whether that was correct and a good idea, plug both results
into a benchmark and look at the actual performance data.

Philip

2016-12-05 12:32 GMT+01:00 Dennis Luehring via llvm-dev <
llvm-dev at lists.llvm.org>:

> FYI
>
> found this example while reading:
> https://github.com/jameysharp/corrode/issues/30#issuecomment-231969365
> and compared it with current gcc 6.2, clang 3.9
>
> gcc 6.2 result is quite small - clang 3.9 produces much much more code
> for this example
> https://godbolt.org/g/uWxr8F
>
> is that a missing optimization opportunity or just wrong behavior of the
> optimizer?
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161205/ecf8943d/attachment.html>


More information about the llvm-dev mailing list