revert r280429 and r280425:
authorDehao Chen <dehao@google.com>
Fri, 2 Sep 2016 01:59:27 +0000 (01:59 +0000)
committerDehao Chen <dehao@google.com>
Fri, 2 Sep 2016 01:59:27 +0000 (01:59 +0000)
commit4b5e7f750c8f629bae39fa18e424057f28436cb2
tree64ff5913a04778bfa0a5547c51910ae905fdc754
parent820372c0edfacecae45a30d19929d73fb29f8cd3
revert r280429 and r280425:

r280425 | dehao | 2016-09-01 16:15:50 -0700 (Thu, 01 Sep 2016) | 9 lines

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).

r280429 | dehao | 2016-09-01 16:31:25 -0700 (Thu, 01 Sep 2016) | 9 lines

Refactor LICM to expose canSinkOrHoistInst to LoopSink pass.

Summary: LoopSink pass shares the same canSinkOrHoistInst functionality with LICM pass. This patch exposes this function in preparation of https://reviews.llvm.org/D22778
llvm-svn: 280453
llvm/include/llvm/Transforms/Utils/LoopUtils.h
llvm/lib/Transforms/Scalar/LICM.cpp