summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorShuxin Yang <shuxin.llvm@gmail.com>2013-01-02 18:26:31 +0000
committerShuxin Yang <shuxin.llvm@gmail.com>2013-01-02 18:26:31 +0000
commit98c844fd8950a2f09e42b67195b0a2af02b81e6e (patch)
treeb3e2a66bd03e6b59bb3e9c89c98ed9f0403d8208 /llvm
parent761937a757a5a77985bbb824d56a05de10c6d9ab (diff)
downloadbcm5719-llvm-98c844fd8950a2f09e42b67195b0a2af02b81e6e.tar.gz
bcm5719-llvm-98c844fd8950a2f09e42b67195b0a2af02b81e6e.zip
- Add comment to two functions which might be considered as dead code.
- Fix a typo llvm-svn: 171399
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/TargetTransformInfo.h2
-rw-r--r--llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp6
2 files changed, 5 insertions, 3 deletions
diff --git a/llvm/include/llvm/TargetTransformInfo.h b/llvm/include/llvm/TargetTransformInfo.h
index 2a4cd2fc45f..a446c7b9716 100644
--- a/llvm/include/llvm/TargetTransformInfo.h
+++ b/llvm/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/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
index 50a03aa3d33..7f1833f8fbc 100644
--- a/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
@@ -669,12 +669,14 @@ bool LoopIdiomRecognize::runOnCountableLoop() {
if (!getDataLayout())
return false;
- getDominatorTree();
+ // set DT
+ (void)getDominatorTree();
LoopInfo &LI = getAnalysis<LoopInfo>();
TLI = &getAnalysis<TargetLibraryInfo>();
- getTargetLibraryInfo();
+ // set TLI
+ (void)getTargetLibraryInfo();
SmallVector<BasicBlock*, 8> ExitBlocks;
CurLoop->getUniqueExitBlocks(ExitBlocks);
OpenPOWER on IntegriCloud