From cbf5373603991b7196f096ddf2b5962ed7708b7e Mon Sep 17 00:00:00 2001 From: Shuxin Yang Date: Wed, 2 Jan 2013 18:26:31 +0000 Subject: [PATCH] - Add comment to two functions which might be considered as dead code. - Fix a typo git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171399 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/TargetTransformInfo.h | 2 +- lib/Transforms/Scalar/LoopIdiomRecognize.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/include/llvm/TargetTransformInfo.h b/include/llvm/TargetTransformInfo.h index 2a4cd2fc45f..a446c7b9716 100644 --- a/include/llvm/TargetTransformInfo.h +++ b/include/llvm/TargetTransformInfo.h @@ -78,7 +78,7 @@ class ScalarTargetTransformInfo { public: /// PopcntHwSupport - Hardware support for population count. Compared to the /// SW implementation, HW support is supposed to significantly boost the - /// performance when the population is dense, and it may or not may degrade + /// performance when the population is dense, and it may or may not degrade /// performance if the population is sparse. A HW support is considered as /// "Fast" if it can outperform, or is on a par with, SW implementaion when /// the population is sparse; otherwise, it is considered as "Slow". diff --git a/lib/Transforms/Scalar/LoopIdiomRecognize.cpp b/lib/Transforms/Scalar/LoopIdiomRecognize.cpp index 50a03aa3d33..7f1833f8fbc 100644 --- a/lib/Transforms/Scalar/LoopIdiomRecognize.cpp +++ b/lib/Transforms/Scalar/LoopIdiomRecognize.cpp @@ -669,12 +669,14 @@ bool LoopIdiomRecognize::runOnCountableLoop() { if (!getDataLayout()) return false; - getDominatorTree(); + // set DT + (void)getDominatorTree(); LoopInfo &LI = getAnalysis(); TLI = &getAnalysis(); - getTargetLibraryInfo(); + // set TLI + (void)getTargetLibraryInfo(); SmallVector ExitBlocks; CurLoop->getUniqueExitBlocks(ExitBlocks);