diff options
author | Adam Nemet <anemet@apple.com> | 2016-04-21 17:33:12 +0000 |
---|---|---|
committer | Adam Nemet <anemet@apple.com> | 2016-04-21 17:33:12 +0000 |
commit | f787826b466e251efc20ab9c3486014e197cf3b5 (patch) | |
tree | 054775d530fdcd11818a642bfc723240adb05829 /llvm | |
parent | b312a740aea5dc9254b513d31e6495def9fb0083 (diff) | |
download | bcm5719-llvm-f787826b466e251efc20ab9c3486014e197cf3b5.tar.gz bcm5719-llvm-f787826b466e251efc20ab9c3486014e197cf3b5.zip |
[LoopUtils] Rename {check->find}StringMetadata{Into->For}Loop. NFC
"Into" was misleading. I am also planning to use this helper to look
for loop metadata and return the argument, so find seems like a better
name.
llvm-svn: 267013
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/Transforms/Utils/LoopUtils.h | 6 | ||||
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopVersioningLICM.cpp | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/llvm/include/llvm/Transforms/Utils/LoopUtils.h b/llvm/include/llvm/Transforms/Utils/LoopUtils.h index 9705e5c6872..e23a6712cc5 100644 --- a/llvm/include/llvm/Transforms/Utils/LoopUtils.h +++ b/llvm/include/llvm/Transforms/Utils/LoopUtils.h @@ -385,9 +385,9 @@ void computeLICMSafetyInfo(LICMSafetyInfo *, Loop *); /// \brief Returns the instructions that use values defined in the loop. SmallVector<Instruction *, 8> findDefsUsedOutsideOfLoop(Loop *L); -/// \brief Check string metadata into loop, if it exist return true, -/// else return false. -bool checkStringMetadataIntoLoop(Loop *TheLoop, StringRef Name); +/// \brief Find string metadata for loop, if it exist return true, else return +/// false. +bool findStringMetadataForLoop(Loop *TheLoop, StringRef Name); /// \brief Set input string into loop metadata by keeping other values intact. void addStringMetadataToLoop(Loop *TheLoop, const char *MDString, diff --git a/llvm/lib/Transforms/Scalar/LoopVersioningLICM.cpp b/llvm/lib/Transforms/Scalar/LoopVersioningLICM.cpp index 18182b6c448..59e51b99eea 100644 --- a/llvm/lib/Transforms/Scalar/LoopVersioningLICM.cpp +++ b/llvm/lib/Transforms/Scalar/LoopVersioningLICM.cpp @@ -121,9 +121,9 @@ static MDNode *createStringMetadata(Loop *TheLoop, StringRef Name, unsigned V) { return MDNode::get(Context, MDs); } -/// \brief Check string metadata in loop, if it exist return true, -/// else return false. -bool llvm::checkStringMetadataIntoLoop(Loop *TheLoop, StringRef Name) { +/// \brief Find string metadata for loop, if it exist return true, else return +/// false. +bool llvm::findStringMetadataForLoop(Loop *TheLoop, StringRef Name) { MDNode *LoopID = TheLoop->getLoopID(); // Return false if LoopID is false. if (!LoopID) @@ -474,7 +474,7 @@ bool LoopVersioningLICM::legalLoopInstructions() { /// else false. bool LoopVersioningLICM::isLoopAlreadyVisited() { // Check LoopVersioningLICM metadata into loop - if (checkStringMetadataIntoLoop(CurLoop, LICMVersioningMetaData)) { + if (findStringMetadataForLoop(CurLoop, LICMVersioningMetaData)) { return true; } return false; |