Refine the loop rotation's API
authorJin Lin <net_linjin@yahoo.com>
Thu, 19 Apr 2018 20:29:43 +0000 (20:29 +0000)
committerJin Lin <net_linjin@yahoo.com>
Thu, 19 Apr 2018 20:29:43 +0000 (20:29 +0000)
commit585f2699cf5bbbb57d71337825b1137a6907cf3f
treea26607c84344dda49489cfdf0754a07a4daa6eb4
parentfa322abee96dc3b1130a4b3218ad36886372276d
Refine the loop rotation's API

Summary:
The following changes addresses the following two issues.

1) The existing loop rotation pass contains both loop latch simplification and loop rotation. So one flag RotationOnly is added to be passed to the loop rotation pass.
2) The threshold value is initialized with MAX_UINT since the loop rotation utility should not have threshold limit.

Reviewers: dmgreen, efriedma

Reviewed By: efriedma

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

llvm-svn: 330362
llvm/include/llvm/Transforms/Utils/LoopRotationUtils.h
llvm/lib/Transforms/Scalar/LoopRotation.cpp
llvm/lib/Transforms/Utils/LoopRotationUtils.cpp