[llvm] 435e220 - [VPlan] Use VPBB in sinkScalarOperands directly. (NFC)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 25 13:35:34 PST 2022
Author: Florian Hahn
Date: 2022-12-25T21:34:59Z
New Revision: 435e220ba6a41afbeaef6019febddc1b89bf4214
URL: https://github.com/llvm/llvm-project/commit/435e220ba6a41afbeaef6019febddc1b89bf4214
DIFF: https://github.com/llvm/llvm-project/commit/435e220ba6a41afbeaef6019febddc1b89bf4214.diff
LOG: [VPlan] Use VPBB in sinkScalarOperands directly. (NFC)
Suggested by @Ayal in D139790.
Added:
Modified:
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
index 74067752f295e..7f5d082e6779a 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
@@ -119,7 +119,7 @@ bool VPlanTransforms::sinkScalarOperands(VPlan &Plan) {
continue;
for (VPValue *Op : RepR->operands())
if (auto *Def = Op->getDefiningRecipe())
- WorkList.insert(std::make_pair(RepR->getParent(), Def));
+ WorkList.insert(std::make_pair(VPBB, Def));
}
}
More information about the llvm-commits
mailing list