[all-commits] [llvm/llvm-project] d0aad9: [LTO] Constify lto::Config reference passed to bac...

Teresa Johnson via All-commits all-commits at lists.llvm.org
Mon Jan 13 12:27:26 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d0aad9f56e1588effa94b15804b098e6307da6b4
      https://github.com/llvm/llvm-project/commit/d0aad9f56e1588effa94b15804b098e6307da6b4
  Author: Teresa Johnson <tejohnson at google.com>
  Date:   2020-01-13 (Mon, 13 Jan 2020)

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

  Log Message:
  -----------
  [LTO] Constify lto::Config reference passed to backends (NFC)

The lto::Config object saved on the global LTO object should not be
updated by any of the LTO backends. Otherwise we could run into
interference between threads utilizing it. Motivated by some proposed
changes that would have caused it to get modified in the ThinLTO
backends.




More information about the All-commits mailing list