[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)
commit3d4269ab05c74ca50f30e93ba8a416980544ab97
tree8bdec15cc2682e34801ba30ef9d95bf3a57882b2
parent4e30d9b6d85a0a4a79c9b527f39deff18b302e4f
[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.

llvm-svn: 230178
llvm/include/llvm/Transforms/Utils/LoopUtils.h
llvm/lib/Transforms/Scalar/LICM.cpp