[all-commits] [llvm/llvm-project] 0b1914: [ThinLTO][gold] Fix filenaming scheme for tasks.

Hongtao Yu via All-commits all-commits at lists.llvm.org
Fri Feb 12 09:40:37 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0b1914e83a03be926569892c17ca743c5ea46d1f
      https://github.com/llvm/llvm-project/commit/0b1914e83a03be926569892c17ca743c5ea46d1f
  Author: Hongtao Yu <hoy at fb.com>
  Date:   2021-02-12 (Fri, 12 Feb 2021)

  Changed paths:
    A llvm/test/tools/gold/X86/Inputs/emit-llvm.bar.ll
    A llvm/test/tools/gold/X86/Inputs/emit-llvm.foo.ll
    A llvm/test/tools/gold/X86/thinlto-emit-llvm.ll
    M llvm/tools/gold/gold-plugin.cpp

  Log Message:
  -----------
  [ThinLTO][gold] Fix filenaming scheme for tasks.

The gold LTO plugin uses a set of hooks to implements emit-llvm and capture intermediate file generated during LTO. The hooks are called by each lto backend thread with a taskID as argument to differentiate between threads and tasks. Currently, all threads are overwriting the same file which results into only the intermediate output of the last backend thread to be preserved. This diff encodes the taskID into the filename.

Reviewed By: tejohnson, wenlei

Differential Revision: https://reviews.llvm.org/D96173




More information about the All-commits mailing list