Skip to content

Commit 3034635

Browse files
committed
!fixup use DefID
1 parent c9a37a4 commit 3034635

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,16 +1979,10 @@ struct VPCSEDenseMapInfo : public DenseMapInfo<VPSingleDefRecipe *> {
19791979
.Case<VPInstruction, VPWidenRecipe, VPWidenCastRecipe,
19801980
VPWidenSelectRecipe, VPWidenGEPRecipe, VPReplicateRecipe>(
19811981
[](auto *I) { return std::make_pair(false, I->getOpcode()); })
1982-
.Case<VPPredInstPHIRecipe>([](auto *I) {
1983-
// Treat VPPredInstPHIRecipe as Instruction::PHI for CSE. This is only
1984-
// safe, if they are in the same block and hence share the same
1985-
// predicate.
1986-
return std::make_pair(false, Instruction::PHI);
1987-
})
19881982
.Case<VPWidenIntrinsicRecipe>([](auto *I) {
19891983
return std::make_pair(true, I->getVectorIntrinsicID());
19901984
})
1991-
.Case<VPVectorPointerRecipe>([](auto *I) {
1985+
.Case<VPVectorPointerRecipe, VPPredInstPHIRecipe>([](auto *I) {
19921986
// For recipes that do not directly map to LLVM IR instructions,
19931987
// assign opcodes after the last VPInstruction opcode (which is also
19941988
// after the last IR Instruction opcode), based on the VPDefID.

0 commit comments

Comments
 (0)