projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dafda61
)
Remove an unnecessary cast. NFC.
author
Jay Foad
<jay.foad@gmail.com>
Wed, 2 Oct 2019 08:56:33 +0000
(08:56 +0000)
committer
Jay Foad
<jay.foad@gmail.com>
Wed, 2 Oct 2019 08:56:33 +0000
(08:56 +0000)
llvm-svn: 373434
llvm/lib/Analysis/LegacyDivergenceAnalysis.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Analysis/LegacyDivergenceAnalysis.cpp
b/llvm/lib/Analysis/LegacyDivergenceAnalysis.cpp
index
7a12f59
..
7de9d2c
100644
(file)
--- a/
llvm/lib/Analysis/LegacyDivergenceAnalysis.cpp
+++ b/
llvm/lib/Analysis/LegacyDivergenceAnalysis.cpp
@@
-257,9
+257,8
@@
void DivergencePropagator::computeInfluenceRegion(
void DivergencePropagator::exploreDataDependency(Value *V) {
// Follow def-use chains of V.
for (User *U : V->users()) {
- Instruction *UserInst = cast<Instruction>(U);
- if (!TTI.isAlwaysUniform(U) && DV.insert(UserInst).second)
- Worklist.push_back(UserInst);
+ if (!TTI.isAlwaysUniform(U) && DV.insert(U).second)
+ Worklist.push_back(U);
}
}