[NewPM] Add CrossDSOCFI pass irrespective of LTO optimization level
authorPirama Arumuga Nainar <pirama@google.com>
Fri, 23 Jul 2021 19:16:22 +0000 (12:16 -0700)
committerPirama Arumuga Nainar <pirama@google.com>
Fri, 23 Jul 2021 21:13:12 +0000 (14:13 -0700)
commitc45e17f11f508d1aea97eded3f1bda2a448f2032
tree201dc502bb8c0caad89044e9951ad97d0e9bdcb0
parent5d679fc502c78eba4758d034cdffc44bc6d48efb
[NewPM] Add CrossDSOCFI pass irrespective of LTO optimization level

This pass is not an optimization and is needed for CFI functionality
(cross-dso verification).

Differential Revision: https://reviews.llvm.org/D106699
llvm/lib/Passes/PassBuilder.cpp
llvm/test/Other/new-pm-O0-defaults.ll
llvm/test/Other/new-pm-lto-defaults.ll