[PATCH] D104764: [CMake] Don't LTO optimize targets on Darwin either

Azharuddin Mohammed via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 21 23:38:44 PDT 2021


azharudd added a comment.

Should this apply to Darwin even when not using LLD?

I'm seeing an error which tracks down to this change. It works fine without the `-mllvm,-O0` link flags.

  FAILED: bin/llvm-tblgen 
  [...snip...]
  Remaining virtual register operands
  UNREACHABLE executed at .../llvm-project/llvm/lib/CodeGen/MachineRegisterInfo.cpp:209!
  clang-13: error: unable to execute command: Abort trap: 6
  clang-13: error: linker command failed due to signal (use -v to see invocation)

https://green.lab.llvm.org/green/job/clang-stage2-Rthinlto/4221/consoleFull


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D104764/new/

https://reviews.llvm.org/D104764



More information about the llvm-commits mailing list