[PATCH] D116032: Avoid useless AttrBuilder conversion
serge via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 20 05:26:46 PST 2021
serge-sans-paille created this revision.
serge-sans-paille added a reviewer: nikic.
Herald added subscribers: dexonsmith, jdoerfert, hiraditya.
serge-sans-paille requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
AttrBuilder has two constructors that allow for costly implict conversion, when ad-hoc method could do the job more efficiently.
Make these constructors explicit, and provide the ad-hoc specialized method.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D116032
Files:
llvm/include/llvm/IR/Attributes.h
llvm/lib/IR/Attributes.cpp
llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
llvm/unittests/IR/AttributesTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116032.395417.patch
Type: text/x-patch
Size: 8292 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211220/12e97405/attachment.bin>
More information about the llvm-commits
mailing list