Skip to content

Commit b45c3aa

Browse files
committed
!fixup adjustments
1 parent 4742f67 commit b45c3aa

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@
3030
#include "llvm/IR/Intrinsics.h"
3131
#include "llvm/IR/PatternMatch.h"
3232

33-
#define LV_NAME "loop-vectorize"
34-
#define DEBUG_TYPE LV_NAME
35-
3633
using namespace llvm;
3734

3835
bool VPlanTransforms::tryToConvertVPInstructionsToVPRecipes(
@@ -2364,7 +2361,7 @@ void VPlanTransforms::narrowInterleaveGroups(VPlan &Plan, ElementCount VF,
23642361
return;
23652362

23662363
// Convert InterleaveGroup \p R to a single VPWidenLoadRecipe.
2367-
auto Narrow = [](VPRecipeBase *R) -> VPValue * {
2364+
auto NarrowOp = [](VPRecipeBase *R) -> VPValue * {
23682365
if (auto *LoadGroup = dyn_cast<VPInterleaveRecipe>(R)) {
23692366
// Narrow interleave group to wide load, as transformed VPlan will only
23702367
// process one original iteration.
@@ -2392,11 +2389,11 @@ void VPlanTransforms::narrowInterleaveGroups(VPlan &Plan, ElementCount VF,
23922389
if (auto *Lane0 = dyn_cast<VPWidenRecipe>(
23932390
StoreGroup->getStoredValues()[0]->getDefiningRecipe())) {
23942391
for (unsigned Idx = 0, E = Lane0->getNumOperands(); Idx != E; ++Idx)
2395-
Lane0->setOperand(Idx,
2396-
Narrow(Lane0->getOperand(Idx)->getDefiningRecipe()));
2392+
Lane0->setOperand(
2393+
Idx, NarrowOp(Lane0->getOperand(Idx)->getDefiningRecipe()));
23972394
Res = Lane0;
23982395
} else {
2399-
Res = Narrow(StoreGroup->getStoredValues()[0]->getDefiningRecipe());
2396+
Res = NarrowOp(StoreGroup->getStoredValues()[0]->getDefiningRecipe());
24002397
}
24012398

24022399
auto *S = new VPWidenStoreRecipe(

0 commit comments

Comments
 (0)