[all-commits] [llvm/llvm-project] 59e4e5: [NewPM] Fix wrong perfect forwardings

Victor Campos via All-commits all-commits at lists.llvm.org
Mon Jul 19 09:21:47 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 59e4e53ead25c5ef0029dbc4df7af7c2fa8d070d
      https://github.com/llvm/llvm-project/commit/59e4e53ead25c5ef0029dbc4df7af7c2fa8d070d
  Author: Victor Campos <victor.campos at arm.com>
  Date:   2021-07-19 (Mon, 19 Jul 2021)

  Changed paths:
    M llvm/include/llvm/Analysis/CGSCCPassManager.h
    M llvm/include/llvm/IR/PassManager.h
    M llvm/include/llvm/Transforms/Scalar/LoopPassManager.h

  Log Message:
  -----------
  [NewPM] Fix wrong perfect forwardings

Some template functions were missing '&&' in function arguments,
therefore these were always taken by value after template instantiation.

This patch adds the double ampersand to introduce proper perfect
forwarding.

Reviewed By: aeubanks

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




More information about the All-commits mailing list