From b3a58ad7f1462e8e88225cc71c03d678c0d4d23f Mon Sep 17 00:00:00 2001 From: Sanjoy Das Date: Tue, 15 Sep 2015 23:45:31 +0000 Subject: [PATCH] [SCEVExpander] Fix comment formatting; NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247747 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../llvm/Analysis/ScalarEvolutionExpander.h | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/include/llvm/Analysis/ScalarEvolutionExpander.h b/include/llvm/Analysis/ScalarEvolutionExpander.h index e5647860db5..6bddb8a8132 100644 --- a/include/llvm/Analysis/ScalarEvolutionExpander.h +++ b/include/llvm/Analysis/ScalarEvolutionExpander.h @@ -117,9 +117,10 @@ namespace llvm { /// \brief Return true for expressions that may incur non-trivial cost to /// evaluate at runtime. - /// 'At' is an optional parameter which specifies point in code where user - /// is going to expand this expression. Sometimes this knowledge can lead to - /// a more accurate cost estimation. + /// + /// At is an optional parameter which specifies point in code where user is + /// going to expand this expression. Sometimes this knowledge can lead to a + /// more accurate cost estimation. bool isHighCostExpansion(const SCEV *Expr, Loop *L, const Instruction *At = nullptr) { SmallPtrSet Processed; @@ -197,12 +198,14 @@ namespace llvm { void setChainedPhi(PHINode *PN) { ChainedPhis.insert(PN); } - /// \brief Try to find LLVM IR value for 'S' available at the point 'At'. - // 'L' is a hint which tells in which loop to look for the suitable value. - // On success return value which is equivalent to the expanded 'S' at point - // 'At'. Return nullptr if value was not found. - // Note that this function does not perform exhaustive search. I.e if it - // didn't find any value it does not mean that there is no such value. + /// \brief Try to find LLVM IR value for S available at the point At. + /// + /// L is a hint which tells in which loop to look for the suitable value. + /// On success return value which is equivalent to the expanded S at point + /// At. Return nullptr if value was not found. + /// + /// Note that this function does not perform an exhaustive search. I.e if it + /// didn't find any value it does not mean that there is no such value. Value *findExistingExpansion(const SCEV *S, const Instruction *At, Loop *L); private: -- 2.34.1