[all-commits] [llvm/llvm-project] 8da3b7: [CMake] Don't LTO optimize targets on Darwin, but ...

azharudd via All-commits all-commits at lists.llvm.org
Fri Jul 23 22:40:16 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8da3b7d857298a306973ea8f78c35adb5ba89837
      https://github.com/llvm/llvm-project/commit/8da3b7d857298a306973ea8f78c35adb5ba89837
  Author: Azharuddin Mohammed <azhar at apple.com>
  Date:   2021-07-23 (Fri, 23 Jul 2021)

  Changed paths:
    M llvm/cmake/modules/AddLLVM.cmake

  Log Message:
  -----------
  [CMake] Don't LTO optimize targets on Darwin, but only if its not ThinLTO

This is just a workaround. Pass the `-mllvm,-O0` link flags only if its
not ThinLTO. Doing that with ThinLTO currently results in an error:

```
Remaining virtual register operands
UNREACHABLE executed at .../llvm/lib/CodeGen/MachineRegisterInfo.cpp:209!
```




More information about the All-commits mailing list