[all-commits] [llvm/llvm-project] 5034df: [SampleProfile] Use CallBase in function arguments...

topperc via All-commits all-commits at lists.llvm.org
Thu Apr 16 22:10:57 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5034df860038822e640234fde994783c3f26d6f6
      https://github.com/llvm/llvm-project/commit/5034df860038822e640234fde994783c3f26d6f6
  Author: Craig Topper <craig.topper at gmail.com>
  Date:   2020-04-16 (Thu, 16 Apr 2020)

  Changed paths:
    M llvm/lib/Transforms/IPO/SampleProfile.cpp

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

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.

Differential Revision: https://reviews.llvm.org/D78246




More information about the All-commits mailing list