[PATCH] D77930: [llvm][NFC] Refactor uses of CallSite to CallBase - call promotion
Mircea Trofin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 10 21:01:20 PDT 2020
mtrofin created this revision.
mtrofin added reviewers: davidxl, dblaikie, wmi.
Herald added subscribers: llvm-commits, kerbowa, hiraditya, eraman, nhaehnle, jvesely, arsenm.
Herald added a project: LLVM.
Updated CallPromotionUtils and impacted sites. Parameters that are
expected to be non-null, and return values that are guranteed non-null,
were replaced with CallBase references rather than pointers.
Left FIXME in places where more changes are facilitated by CallBase, but
aren't CallSites: Instruction* parameters or return values, for example,
where the contract that they are actually CallBase values.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D77930
Files:
llvm/include/llvm/Transforms/Utils/CallPromotionUtils.h
llvm/include/llvm/Transforms/Utils/Cloning.h
llvm/lib/Target/AMDGPU/AMDGPUFixFunctionBitcasts.cpp
llvm/lib/Transforms/IPO/Inliner.cpp
llvm/lib/Transforms/IPO/SampleProfile.cpp
llvm/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp
llvm/lib/Transforms/Utils/CallPromotionUtils.cpp
llvm/lib/Transforms/Utils/InlineFunction.cpp
llvm/unittests/Transforms/Utils/CallPromotionUtilsTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77930.256740.patch
Type: text/x-patch
Size: 24851 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200411/13c9bce1/attachment.bin>
More information about the llvm-commits
mailing list