Skip to content

Commit f332862

Browse files
committed
SLPVectorizer: Use use_empty instead of getNumUses
1 parent b2ba531 commit f332862

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6749,7 +6749,7 @@ BoUpSLP::getReorderingData(const TreeEntry &TE, bool TopToBottom,
67496749
auto PHICompare = [&](unsigned I1, unsigned I2) {
67506750
Value *V1 = TE.Scalars[I1];
67516751
Value *V2 = TE.Scalars[I2];
6752-
if (V1 == V2 || (V1->getNumUses() == 0 && V2->getNumUses() == 0))
6752+
if (V1 == V2 || (V1->use_empty() && V2->use_empty()))
67536753
return false;
67546754
if (isa<PoisonValue>(V1))
67556755
return true;

0 commit comments

Comments
 (0)