We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d45757 commit c07c1c4Copy full SHA for c07c1c4
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
@@ -156,8 +156,7 @@ static bool sinkScalarOperands(VPlan &Plan) {
156
if (NeedsDuplicating) {
157
if (ScalarVFOnly)
158
continue;
159
- Instruction *I = cast<Instruction>(
160
- cast<VPReplicateRecipe>(SinkCandidate)->getUnderlyingValue());
+ Instruction *I = SinkCandidate->getUnderlyingInstr();
161
auto *Clone = new VPReplicateRecipe(I, SinkCandidate->operands(), true);
162
// TODO: add ".cloned" suffix to name of Clone's VPValue.
163
0 commit comments