Refactor LICM pass in preparation for LoopSink pass.
authorDehao Chen <dehao@google.com>
Thu, 1 Sep 2016 23:15:50 +0000 (23:15 +0000)
committerDehao Chen <dehao@google.com>
Thu, 1 Sep 2016 23:15:50 +0000 (23:15 +0000)
commitbc4e5bba0e8895604bae24fd82fd454a9e61ff40
treec4a9e73297eb19a4553a2501d5c19548be4edef7
parent7bc54cebeab437eaeb5fb39c876f9d24e38f6f52
Refactor LICM pass in preparation for LoopSink pass.

Summary: LoopSink pass uses some common function in LICM. This patch refactor the LICM code to make it usable by LoopSink pass (https://reviews.llvm.org/D22778).

Reviewers: chandlerc, davidxl, danielcdh

Subscribers: llvm-commits

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

llvm-svn: 280425
llvm/lib/Transforms/Scalar/LICM.cpp