File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -6919,7 +6919,7 @@ void BoUpSLP::tryToVectorizeGatheredLoads(
69196919 // 2. All users are deleted.
69206920 // 3. The load broadcasts are not allowed or the load is not
69216921 // broadcasted.
6922- if (std::distance(LI->user_begin(), LI->user_end()) !=
6922+ if (static_cast<unsigned int>( std::distance(LI->user_begin(), LI->user_end() )) !=
69236923 LI->getNumUses())
69246924 return false;
69256925 if (!IsLegalBroadcastLoad)
@@ -9762,7 +9762,7 @@ void BoUpSLP::transformNodes() {
97629762 Slice.front()->getType(), 2 * VF)),
97639763 1U, 2 * VF)) ||
97649764 count(Slice, Slice.front()) ==
9765- (isa<UndefValue>(Slice.front()) ? VF - 1 : 1)) {
9765+ static_cast<long> (isa<UndefValue>(Slice.front()) ? VF - 1 : 1)) {
97669766 if (IsSplat)
97679767 continue;
97689768 InstructionsState S = getSameOpcode(Slice, *TLI);
You can’t perform that action at this time.
0 commit comments