2 Commits

Author SHA1 Message Date
Matthew Voss
f626b1f4ca [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.
2024-01-11 16:52:35 -08:00
Wael Yehia
534e23e47b [ThinLTO][Matrix] Forward -enable-matrix flag to the LTO plugin
because matrix intrinsics lowering happens at link time in ThinLTO.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D153583
2023-09-01 03:17:54 +00:00