[llvm-commits] [llvm] r171399 - in /llvm/trunk: include/llvm/TargetTransformInfo.h lib/Transforms/Scalar/LoopIdiomRecognize.cpp
Shuxin Yang
shuxin.llvm at gmail.com
Wed Jan 2 10:27:09 PST 2013
Author: shuxin_yang
Date: Wed Jan 2 12:26:31 2013
New Revision: 171399
URL: http://llvm.org/viewvc/llvm-project?rev=171399&view=rev
Log:
- Add comment to two functions which might be considered as dead code.
- Fix a typo
Modified:
llvm/trunk/include/llvm/TargetTransformInfo.h
llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
Modified: llvm/trunk/include/llvm/TargetTransformInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/TargetTransformInfo.h?rev=171399&r1=171398&r2=171399&view=diff
==============================================================================
--- llvm/trunk/include/llvm/TargetTransformInfo.h (original)
+++ llvm/trunk/include/llvm/TargetTransformInfo.h Wed Jan 2 12:26:31 2013
@@ -78,7 +78,7 @@
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".
Modified: llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp?rev=171399&r1=171398&r2=171399&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp Wed Jan 2 12:26:31 2013
@@ -669,12 +669,14 @@
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);
More information about the llvm-commits
mailing list