mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-12 22:26:14 +00:00
Remove duplicating code. NFC.
The removed condition is checked in the previous loop. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225542 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6248d1b153
commit
b2e5f58de0
@ -1034,8 +1034,8 @@ void BoUpSLP::buildTree_rec(ArrayRef<Value *> VL, unsigned Depth) {
|
||||
// If any of the scalars appears in the table OR it is marked as a value that
|
||||
// needs to stat scalar then we need to gather the scalars.
|
||||
for (unsigned i = 0, e = VL.size(); i != e; ++i) {
|
||||
if (ScalarToTreeEntry.count(VL[i]) || MustGather.count(VL[i])) {
|
||||
DEBUG(dbgs() << "SLP: Gathering due to gathered scalar. \n");
|
||||
if (MustGather.count(VL[i])) {
|
||||
DEBUG(dbgs() << "SLP: Gathering due to gathered scalar.\n");
|
||||
newTreeEntry(VL, false);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user