- Add comment to two functions which might be considered as dead code.
authorShuxin Yang <shuxin.llvm@gmail.com>
Wed, 2 Jan 2013 18:26:31 +0000 (18:26 +0000)
committerShuxin Yang <shuxin.llvm@gmail.com>
Wed, 2 Jan 2013 18:26:31 +0000 (18:26 +0000)
- Fix a typo

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171399 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/TargetTransformInfo.h
lib/Transforms/Scalar/LoopIdiomRecognize.cpp

index 2a4cd2fc45f7dc9818aebf879566dbe68bab8d1c..a446c7b9716f8f90a023e1e23539b1c99d90f57e 100644 (file)
@@ -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".
index 50a03aa3d33f2888c13eb4fd84d298f412d2eef5..7f1833f8fbcb6d081e8116ba53712b00224a4759 100644 (file)
@@ -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);