[all-commits] [llvm/llvm-project] f626b1: [clang][FatLTO][UnifiedLTO] Pass -enable-matrix to...

Matthew Voss via All-commits all-commits at lists.llvm.org
Thu Jan 11 16:53:42 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f626b1f4ca2a6fd2b6c5eea3b53c15c4502d29fa
      https://github.com/llvm/llvm-project/commit/f626b1f4ca2a6fd2b6c5eea3b53c15c4502d29fa
  Author: Matthew Voss <matthew.voss at sony.com>
  Date:   2024-01-11 (Thu, 11 Jan 2024)

  Changed paths:
    M clang/lib/Driver/ToolChains/CommonArgs.cpp
    M clang/test/Driver/matrix.c

  Log Message:
  -----------
  [clang][FatLTO][UnifiedLTO] Pass -enable-matrix to the LTO driver

Unified LTO and Fat LTO do not use the regular LTO prelink pipeline when
-flto/-flto=full is specified on the command line, thus they require
LowerMatrixIntrinsicsPass to be run during the link stage. To enable
this, we pass -enable-matrix to the LTO driver, replicating ThinLTO
behavior. This fix was applied to ThinLTO in https://reviews.llvm.org/D153583.

This fixes #77621.




More information about the All-commits mailing list