[PATCH] D40293: [NFC] Factor out implicit control flow logic from GVN

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 21 03:58:11 PST 2017


mkazantsev created this revision.
Herald added a subscriber: mgorny.

Logic for tracking implicit control flow instructions was added to GVN to
perform PRE optimizations correctly. It appears that GVN is not the only
optimization that sometimes does PRE, so this logic is required in other
places (such as Jump Threading).

This is an NFC patch that encapsulates all ICF-related logic in a dedicated
utility class separated from GVN.


https://reviews.llvm.org/D40293

Files:
  include/llvm/Transforms/Scalar/GVN.h
  include/llvm/Transforms/Utils/ImplicitControlFlowTracking.h
  lib/Transforms/Scalar/GVN.cpp
  lib/Transforms/Utils/CMakeLists.txt
  lib/Transforms/Utils/ImplicitControlFlowTracking.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40293.123760.patch
Type: text/x-patch
Size: 13035 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171121/dc4f5e97/attachment.bin>


More information about the llvm-commits mailing list