[ADCE] Refactor anticipating new functionality (NFC)
authorDavid Callahan <dcallahan@fb.com>
Wed, 3 Aug 2016 04:28:39 +0000 (04:28 +0000)
committerDavid Callahan <dcallahan@fb.com>
Wed, 3 Aug 2016 04:28:39 +0000 (04:28 +0000)
commitcc5cd4dc658f751196d901049f241ab703ac9e7b
tree7013de2d239990d8000f34b3a7bedd627524f8e8
parentf9721ba5f1ad9cb0818e2a90079cf9336586f5c5
[ADCE] Refactor anticipating new functionality (NFC)

Summary:
This is the first refactoring before adding new functionality.
Add a class wrapper for the functions and container for
state associated with the transformation.

No functional change

Reviewers: majnemer, nadav, mehdi_amini

Subscribers: llvm-commits

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

llvm-svn: 277565
llvm/lib/Transforms/Scalar/ADCE.cpp