[all-commits] [llvm/llvm-project] 94d912: [NFC] Do not run CGProfilePass when not using inte...
zhizhouy via All-commits
all-commits at lists.llvm.org
Tue Mar 31 10:31:42 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 94d912296de21e965198ba1ddd1ca6714b3e4722
https://github.com/llvm/llvm-project/commit/94d912296de21e965198ba1ddd1ca6714b3e4722
Author: zhizhouy <zhizhouy at google.com>
Date: 2020-03-31 (Tue, 31 Mar 2020)
Changed paths:
M clang/include/clang/Basic/CodeGenOptions.def
M clang/lib/CodeGen/BackendUtil.cpp
M clang/lib/Frontend/CompilerInvocation.cpp
M llvm/include/llvm/Passes/PassBuilder.h
M llvm/lib/Passes/PassBuilder.cpp
A llvm/test/Other/new-pm-cgprofile.ll
Log Message:
-----------
[NFC] Do not run CGProfilePass when not using integrated assembler
Summary:
CGProfilePass is run by default in certain new pass manager optimization pipeline. Assemblers other than llvm as (such as gnu as) cannot recognize the .cgprofile entries generated and emitted from this pass, causing build time error.
This patch adds new options in clang CodeGenOpts and PassBuilder options so that we can turn cgprofile off when not using integrated assembler.
Reviewers: Bigcheese, xur, george.burgess.iv, chandlerc, manojgupta
Reviewed By: manojgupta
Subscribers: manojgupta, void, hiraditya, dexonsmith, llvm-commits, tcwang, llozano
Tags: #llvm, #clang
Differential Revision: https://reviews.llvm.org/D62627
More information about the All-commits
mailing list