Skip to content

Commit 9c0a8c4

Browse files
committed
Fix warnings while compiling SLPVectorizer.cpp
1 parent 2df0d29 commit 9c0a8c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)