[PATCH] D78246: [SampleProfile] Use CallBase in function arguments and data structures to reduce the number of explicit casts. NFCI

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 15 14:55:26 PDT 2020


craig.topper created this revision.
craig.topper added reviewers: dblaikie, mtrofin.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

Removing CallSite left us with a bunch of explicit casts from
Instruction to CallBase. This moves the casts earlier so that
function arguments and data structure types are CallBase so
we don't have to cast when we use them.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78246

Files:
  llvm/lib/Transforms/IPO/SampleProfile.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78246.257859.patch
Type: text/x-patch
Size: 9783 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200415/6dcb84ab/attachment.bin>


More information about the llvm-commits mailing list