|
30 | 30 | #include "llvm/IR/Intrinsics.h"
|
31 | 31 | #include "llvm/IR/PatternMatch.h"
|
32 | 32 |
|
33 |
| -#define LV_NAME "loop-vectorize" |
34 |
| -#define DEBUG_TYPE LV_NAME |
35 |
| - |
36 | 33 | using namespace llvm;
|
37 | 34 |
|
38 | 35 | bool VPlanTransforms::tryToConvertVPInstructionsToVPRecipes(
|
@@ -2364,7 +2361,7 @@ void VPlanTransforms::narrowInterleaveGroups(VPlan &Plan, ElementCount VF,
|
2364 | 2361 | return;
|
2365 | 2362 |
|
2366 | 2363 | // Convert InterleaveGroup \p R to a single VPWidenLoadRecipe.
|
2367 |
| - auto Narrow = [](VPRecipeBase *R) -> VPValue * { |
| 2364 | + auto NarrowOp = [](VPRecipeBase *R) -> VPValue * { |
2368 | 2365 | if (auto *LoadGroup = dyn_cast<VPInterleaveRecipe>(R)) {
|
2369 | 2366 | // Narrow interleave group to wide load, as transformed VPlan will only
|
2370 | 2367 | // process one original iteration.
|
@@ -2392,11 +2389,11 @@ void VPlanTransforms::narrowInterleaveGroups(VPlan &Plan, ElementCount VF,
|
2392 | 2389 | if (auto *Lane0 = dyn_cast<VPWidenRecipe>(
|
2393 | 2390 | StoreGroup->getStoredValues()[0]->getDefiningRecipe())) {
|
2394 | 2391 | 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())); |
2397 | 2394 | Res = Lane0;
|
2398 | 2395 | } else {
|
2399 |
| - Res = Narrow(StoreGroup->getStoredValues()[0]->getDefiningRecipe()); |
| 2396 | + Res = NarrowOp(StoreGroup->getStoredValues()[0]->getDefiningRecipe()); |
2400 | 2397 | }
|
2401 | 2398 |
|
2402 | 2399 | auto *S = new VPWidenStoreRecipe(
|
|
0 commit comments