[llvm] r373434 - Remove an unnecessary cast. NFC.
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 2 01:56:33 PDT 2019
Author: foad
Date: Wed Oct 2 01:56:33 2019
New Revision: 373434
URL: http://llvm.org/viewvc/llvm-project?rev=373434&view=rev
Log:
Remove an unnecessary cast. NFC.
Modified:
llvm/trunk/lib/Analysis/LegacyDivergenceAnalysis.cpp
Modified: llvm/trunk/lib/Analysis/LegacyDivergenceAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LegacyDivergenceAnalysis.cpp?rev=373434&r1=373433&r2=373434&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/LegacyDivergenceAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/LegacyDivergenceAnalysis.cpp Wed Oct 2 01:56:33 2019
@@ -257,9 +257,8 @@ void DivergencePropagator::computeInflue
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);
}
}
More information about the llvm-commits
mailing list