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

Dennis Luehring via llvm-dev llvm-dev at lists.llvm.org
Mon Dec 5 03:32:43 PST 2016


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?



More information about the llvm-dev mailing list