We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb7f514 commit 01c1c78Copy full SHA for 01c1c78
llvm/lib/Transforms/Scalar/NewGVN.cpp
@@ -3195,8 +3195,7 @@ bool NewGVN::singleReachablePHIPath(
3195
};
3196
auto FilteredPhiArgs =
3197
make_filter_range(MP->operands(), ReachableOperandPred);
3198
- SmallVector<const Value *, 32> OperandList;
3199
- llvm::copy(FilteredPhiArgs, std::back_inserter(OperandList));
+ SmallVector<const Value *, 32> OperandList(FilteredPhiArgs);
3200
bool Okay = all_equal(OperandList);
3201
if (Okay)
3202
return singleReachablePHIPath(Visited, cast<MemoryAccess>(OperandList[0]),
0 commit comments