OSDN Git Service

[LICM] Refactor to expose functionality as utility functions
authorHal Finkel <hfinkel@anl.gov>
Sun, 22 Feb 2015 18:35:32 +0000 (18:35 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sun, 22 Feb 2015 18:35:32 +0000 (18:35 +0000)
commit67f22b7af9d3f0907d260172f226f7b53eeddbfb
tree7d7ca406413bec98909ebfff4505957d9f7b7cd8
parent66c960350c9f1380ae5adbb19947e435d7b0d752
[LICM] Refactor to expose functionality as utility functions

This refactors the core functionality of LICM: HoistRegion, SinkRegion and
PromoteAliasSet (renamed to promoteLoopAccessesToScalars) as utility functions
in LoopUtils. This will enable other transformations to make use of them
directly.

Patch by Ashutosh Nema.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230178 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/LoopUtils.h
lib/Transforms/Scalar/LICM.cpp