[all-commits] [llvm/llvm-project] 30d639: [Legacy ThinLTO] Use code model from IR when creat...

Hubert Tong via All-commits all-commits at lists.llvm.org
Thu Oct 24 13:29:42 PDT 2024


  Branch: refs/heads/users/hubert-reinterpretcast/LegacyThinLTO-UseCodeModelFromIR
  Home:   https://github.com/llvm/llvm-project
  Commit: 30d639af8f3708b88919deb978832f28b70fb09f
      https://github.com/llvm/llvm-project/commit/30d639af8f3708b88919deb978832f28b70fb09f
  Author: Hubert Tong <hubert.reinterpretcast at gmail.com>
  Date:   2024-10-24 (Thu, 24 Oct 2024)

  Changed paths:
    M llvm/include/llvm/LTO/legacy/ThinLTOCodeGenerator.h
    M llvm/lib/LTO/ThinLTOCodeGenerator.cpp

  Log Message:
  -----------
  [Legacy ThinLTO] Use code model from IR when creating TargetMachine

It is observed that libLTO.so, which uses the legacy ThinLTO interface
respects neither the `--code-model=` option nor the code model encoded
in the IR.

This PR is a fix to respect the code model encoded in the IR.


  Commit: 9420bd58b53824cb6ab30fa4a5cf420ec8b1065c
      https://github.com/llvm/llvm-project/commit/9420bd58b53824cb6ab30fa4a5cf420ec8b1065c
  Author: Hubert Tong <hubert.reinterpretcast at gmail.com>
  Date:   2024-10-24 (Thu, 24 Oct 2024)

  Changed paths:
    A llvm/test/LTO/PowerPC/codemodel-1.legacy.thinlto.ll
    A llvm/test/LTO/PowerPC/codemodel-2.legacy.thinlto.ll

  Log Message:
  -----------
  Legacy ThinLTO LIT tests: codegen using code model from IR


Compare: https://github.com/llvm/llvm-project/compare/30d639af8f37%5E...9420bd58b538

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list