projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't use a potentially expensive shift if all we want is one set bit.
[oota-llvm.git]
/
lib
/
Analysis
/
MemoryDependenceAnalysis.cpp
diff --git
a/lib/Analysis/MemoryDependenceAnalysis.cpp
b/lib/Analysis/MemoryDependenceAnalysis.cpp
index c0009cb9899f7f50ab737de16b374ffb6cb3f37e..fe1c8743a44f559d78500bd16254da18f737f224 100644
(file)
--- a/
lib/Analysis/MemoryDependenceAnalysis.cpp
+++ b/
lib/Analysis/MemoryDependenceAnalysis.cpp
@@
-1,4
+1,4
@@
-//===- MemoryDependenceAnalysis.cpp - Mem Deps Implementation
--*- C++ -*
-===//
+//===- MemoryDependenceAnalysis.cpp - Mem Deps Implementation
------------
-===//
//
// The LLVM Compiler Infrastructure
//
//
// The LLVM Compiler Infrastructure
//
@@
-89,7
+89,7
@@
bool MemoryDependenceAnalysis::runOnFunction(Function &) {
AA = &getAnalysis<AliasAnalysis>();
TD = getAnalysisIfAvailable<DataLayout>();
DT = getAnalysisIfAvailable<DominatorTree>();
AA = &getAnalysis<AliasAnalysis>();
TD = getAnalysisIfAvailable<DataLayout>();
DT = getAnalysisIfAvailable<DominatorTree>();
- if (
PredCache == 0
)
+ if (
!PredCache
)
PredCache.reset(new PredIteratorCache());
return false;
}
PredCache.reset(new PredIteratorCache());
return false;
}