Godot version:
master ec110076c - e3590a252
OS/device including version:
clang versions:
Last knows good clang versions:
Fixed in clang version 7.0.0 (trunk 329027), installed from MacPorts.
NOT fixed in Xcode 9.4 beta (9Q1004A)
Steps to reproduce:
Build optimised (release or release_debug) Godot on macOS using specified compiler versions.
If you have problems compiling Godot release versions on mac, downgrade Xcode command line tools to 9.2 or use clang-5.0/clang-devel from MacPorts (add macports_clang=5.0/macports_clang=devel to build command).
Update (Apr 14): Same problem affects Linux builds too, so it's clearly compiler bug.
Update (Apr 22): Some additional information: clang seems to have problem optimising multiple inlined instances of test_axis, in _collision_capsule_capsule function.
I'm having the exact same issue with this.
it'd be better to mention not to use clang 6.0 on docs. I spent couple of days for it :(
Update: Bisected LLVM/Clang to following commits:
:small_blue_diamond: Bug introduced in PeepholeOptimizer: Do not form PHI with subreg arguments
master branch: llvm-project @ 1593fa8, reviews.llvm.org @ rL322313
release_60 branch: llvm-project @ f5d8d87, reviews.llvm.org @ rL322684
:small_blue_diamond: Bug fixed in PeepholeOpt cleanup/refactor; NFC
master branch: llvm-project @ 595304a, reviews.llvm.org @ rL322325
Could you file a bug report upstream? If it's a compiler issue it would be good to let them know about it.
Most helpful comment
Update: Bisected LLVM/Clang to following commits:
:small_blue_diamond: Bug introduced in
PeepholeOptimizer: Do not form PHI with subreg argumentsmasterbranch: llvm-project @ 1593fa8, reviews.llvm.org @ rL322313release_60branch: llvm-project @ f5d8d87, reviews.llvm.org @ rL322684:small_blue_diamond: Bug fixed in
PeepholeOpt cleanup/refactor; NFCmasterbranch: llvm-project @ 595304a, reviews.llvm.org @ rL322325