OSDN Git Service

[CodeMoverUtils] Make specific analysis dependent checks optional
authorSharmaRithik <rithiksh02@gmail.com>
Tue, 7 Jul 2020 14:26:34 +0000 (19:56 +0530)
committerSharmaRithik <rithiksh02@gmail.com>
Tue, 7 Jul 2020 14:41:07 +0000 (20:11 +0530)
commit082e3952300003ecf2eaa6bf346ae2e783b7a02e
tree7da087b693744ea5a683ae5da45d85461a642fc2
parentabdd367b200a0bf4176dbdaf200b23f750a35cb0
[CodeMoverUtils] Make specific analysis dependent checks optional

Summary: This patch makes code motion checks optional which are dependent on
specific analysis example, dominator tree, post dominator tree and dependence
info. The aim is to make the adoption of CodeMoverUtils easier for clients that
don't use analysis which were strictly required by CodeMoverUtils. This will
also help in diversifying code motion checks using other analysis example MSSA.
Authored By: RithikSharma
Reviewer: Whitney, bmahjour, etiotto
Reviewed By: Whitney
Subscribers: Prazek, hiraditya, george.burgess.iv, asbirlea, llvm-commits
Tag: LLVM
Differential Revision: https://reviews.llvm.org/D82566
llvm/include/llvm/Transforms/Utils/CodeMoverUtils.h
llvm/lib/Transforms/Scalar/LoopFuse.cpp
llvm/lib/Transforms/Utils/CodeMoverUtils.cpp
llvm/unittests/Transforms/Utils/CodeMoverUtilsTest.cpp