[PATCH] D75846: [SCCP] Split up call site handling, only propagate result on change.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 9 06:24:46 PDT 2020


fhahn created this revision.
fhahn added reviewers: efriedma, davide.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

Functions include their arguments in the use-list. Changed function
values mean that the result of the function changed. We only need
to update the call sites with the new function result and do not
have to propagate the call arguments.

To do so, this patch splits up the visitCallSite into handleCallResult
and handleCallArguments and updates markUsersAsChanged to only update
call results for functions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D75846

Files:
  llvm/lib/Transforms/Scalar/SCCP.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75846.249075.patch
Type: text/x-patch
Size: 10065 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200309/b331e2bf/attachment.bin>


More information about the llvm-commits mailing list