[all-commits] [llvm/llvm-project] b13b85: [NewPM] Support optnone under new pass manager
aeubanks via All-commits
all-commits at lists.llvm.org
Tue Jul 21 09:55:09 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: b13b85818218aa17cee4c987cbf835208c06cf10
https://github.com/llvm/llvm-project/commit/b13b85818218aa17cee4c987cbf835208c06cf10
Author: Arthur Eubanks <aeubanks at google.com>
Date: 2020-07-21 (Tue, 21 Jul 2020)
Changed paths:
M clang/lib/CodeGen/BackendUtil.cpp
M llvm/include/llvm/Passes/StandardInstrumentations.h
M llvm/lib/LTO/LTOBackend.cpp
M llvm/lib/Passes/StandardInstrumentations.cpp
M llvm/test/Feature/optnone-opt.ll
M llvm/tools/opt/NewPMDriver.cpp
Log Message:
-----------
[NewPM] Support optnone under new pass manager
OptNoneInstrumentation is part of StandardInstrumentations. It skips
functions (or loops) that are marked optnone.
The feature of skipping optional passes for optnone functions under NPM
is gated on a -enable-npm-optnone flag. Currently it is by default
false. That is because we still need to mark all required passes to be
required. Otherwise optnone functions will start having incorrect
semantics. After that is done in following changes, we can remove the
flag and always enable this.
Reviewed By: ychen
Differential Revision: https://reviews.llvm.org/D83519
More information about the All-commits
mailing list