Skip to content

Commit e7a77ea

Browse files
committed
Remove redundant UR != R check
1 parent 7093020 commit e7a77ea

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,8 +1018,7 @@ void VPlanTransforms::simplifyRecipes(VPlan &Plan, Type &CanonicalIVTy) {
10181018
Worklist.insert(ResultR);
10191019
for (VPUser *U : Result->users())
10201020
if (auto *UR = dyn_cast<VPRecipeBase>(U))
1021-
if (UR != R)
1022-
Worklist.insert(UR);
1021+
Worklist.insert(UR);
10231022

10241023
#ifndef NDEBUG
10251024
// Verify that the cached type info is for both Result and its users is

0 commit comments

Comments
 (0)