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)
llvm-svn: 373434

llvm/lib/Analysis/LegacyDivergenceAnalysis.cpp

index 7a12f59..7de9d2c 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);
   }
 }