[PATCH] D78659: Add nomerge function attribute to supress tail merge optimization in simplifyCFG
Zequan Wu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 22 11:58:22 PDT 2020
zequanwu created this revision.
zequanwu added reviewers: asbirlea, rnk.
zequanwu added projects: LLVM, clang.
Herald added subscribers: cfe-commits, hiraditya.
We want to add a way to avoid tail calls to noreturn function from being merged.
This patch add nomerge to disable the optimization in IR level.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D78659
Files:
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/AttrDocs.td
clang/lib/CodeGen/CGCall.cpp
llvm/include/llvm/IR/Attributes.td
llvm/include/llvm/IR/InstrTypes.h
llvm/lib/IR/Attributes.cpp
llvm/lib/IR/Verifier.cpp
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78659.259345.patch
Type: text/x-patch
Size: 4356 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200422/2b100591/attachment.bin>
More information about the cfe-commits
mailing list