[PATCH] D37638: [IPSCCP] Move common functions to IPOUtils (NFC)
Matthew Simpson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 8 12:26:47 PDT 2017
mssimpso created this revision.
Herald added a subscriber: mgorny.
This patch moves some common utility functions out of IPSCCP and makes them available globally. The functions determine if interprocedural data-flow analyses can propagate information through function returns, arguments, and global variables.
My initial intent was to move these functions to Transforms/IPO/Utils.cpp, but that wouldn't work well with our current build. Because IPSCCP and SCCP are implemented together in the Scalar library, it would have required that the Scalar library depend on the IPO library. Since both Scalar and IPO already depend on Transform/Utils, I thought that was the better location.
This refactoring was suggested in the review of https://reviews.llvm.org/D37335.
https://reviews.llvm.org/D37638
Files:
include/llvm/Transforms/Utils/IPOUtils.h
lib/Transforms/Scalar/SCCP.cpp
lib/Transforms/Utils/CMakeLists.txt
lib/Transforms/Utils/IPOUtils.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37638.114411.patch
Type: text/x-patch
Size: 9995 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170908/e05e6dfb/attachment.bin>
More information about the llvm-commits
mailing list