diff options
-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; |