[PATCH] D56447: Enable IPConstantPropagation to work with abstract call sites

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 8 10:29:18 PST 2019


jdoerfert created this revision.
jdoerfert added reviewers: hfinkel, reames.

This modification of the currently unused inter-procedural constant
propagation pass (IPConstantPropagation) shows how abstract call sites
enable optimization of callback calls alongside direct and indirect
calls. Through minimal changes, mostly dealing with the partial mapping
of callbacks, inter-procedural constant propagation was enabled for
callbacks, e.g., OpenMP runtime calls or pthreads_create.


Repository:
  rL LLVM

https://reviews.llvm.org/D56447

Files:
  lib/Transforms/IPO/IPConstantPropagation.cpp
  test/Transforms/IPConstantProp/multiple_callbacks.ll
  test/Transforms/IPConstantProp/openmp_parallel_for.ll
  test/Transforms/IPConstantProp/pthreads.ll
  test/Transforms/IPConstantProp/thread_local_acs.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56447.180694.patch
Type: text/x-patch
Size: 13165 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190108/d185c905/attachment.bin>


More information about the llvm-commits mailing list