File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1832,11 +1832,11 @@ struct VPCSEDenseMapInfo : public DenseMapInfo<VPSingleDefRecipe *> {
1832
1832
TypeInfo.inferScalarType (L) == TypeInfo.inferScalarType (R) &&
1833
1833
vputils::isSingleScalar (L) == vputils::isSingleScalar (R) &&
1834
1834
equal (L->operands (), R->operands ());
1835
+ if (Result && isa<VPReplicateRecipe>(L))
1836
+ Result = L->getUnderlyingInstr () == R->getUnderlyingInstr ();
1835
1837
assert ((!Result || getHashValue (L) == getHashValue (R)) &&
1836
1838
" Divergent hashes of equal values" );
1837
- return Result && isa<VPReplicateRecipe>(L)
1838
- ? L->getUnderlyingInstr () == R->getUnderlyingInstr ()
1839
- : Result;
1839
+ return Result;
1840
1840
}
1841
1841
};
1842
1842
} // end anonymous namespace
You can’t perform that action at this time.
0 commit comments