diff options
author | Andrew Trick <atrick@apple.com> | 2012-03-22 17:47:33 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2012-03-22 17:47:33 +0000 |
commit | 1508e5e0495a3b3d034cb8e0b9be16b01749d8b3 (patch) | |
tree | cbec739ad767227e2e8773aac9465ecc3a4359ca /include/llvm/Analysis/IVUsers.h | |
parent | 9f2539507c954e35a6e845c0665a2fcdb07faad1 (diff) | |
download | llvm-1508e5e0495a3b3d034cb8e0b9be16b01749d8b3.tar.gz llvm-1508e5e0495a3b3d034cb8e0b9be16b01749d8b3.tar.bz2 llvm-1508e5e0495a3b3d034cb8e0b9be16b01749d8b3.tar.xz |
Cleanup IVUsers::addUsersIfInteresting.
Keep the public interface clean, even though LLVM proper does not
currently use it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153263 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/IVUsers.h')
-rw-r--r-- | include/llvm/Analysis/IVUsers.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/Analysis/IVUsers.h b/include/llvm/Analysis/IVUsers.h index 11d2cf0ac7..2bf79b9c93 100644 --- a/include/llvm/Analysis/IVUsers.h +++ b/include/llvm/Analysis/IVUsers.h @@ -145,8 +145,7 @@ public: /// AddUsersIfInteresting - Inspect the specified Instruction. If it is a /// reducible SCEV, recursively add its users to the IVUsesByStride set and /// return true. Otherwise, return false. - bool AddUsersIfInteresting(Instruction *I, - SmallPtrSet<Loop*,16> &SimpleLoopNests); + bool AddUsersIfInteresting(Instruction *I); IVStrideUse &AddUser(Instruction *User, Value *Operand); @@ -175,6 +174,8 @@ public: /// dump - This method is used for debugging. void dump() const; +protected: + bool AddUsersImpl(Instruction *I, SmallPtrSet<Loop*,16> &SimpleLoopNests); }; Pass *createIVUsersPass(); |