]> granicus.if.org Git - llvm/commitdiff
Remove an unnecessary cast. NFC.
authorJay Foad <jay.foad@gmail.com>
Wed, 2 Oct 2019 08:56:33 +0000 (08:56 +0000)
committerJay Foad <jay.foad@gmail.com>
Wed, 2 Oct 2019 08:56:33 +0000 (08:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373434 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/LegacyDivergenceAnalysis.cpp

index 7a12f597969dedc47e7f893564240b02ef0b477d..7de9d2cbfddba6cb13ff823eecbf96bb0e3f6dae 100644 (file)
@@ -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);
   }
 }