OSDN Git Service

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)
commita5747ee16d00c13b7117c14a0512ce8301b74fdd
treecfc4acb4d0a8bf3de9996261675d2e5b6c5234ce
parent52d1558d204c784f3f7b5afe0d25ff2c2f485bbb
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

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