Use arrays or initializer lists to feed ArrayRefs instead of SmallVector where possible.
No functionality change intended. llvm-svn: 274431
This commit is contained in:
@@ -3022,9 +3022,7 @@ ScalarEvolution::getGEPExpr(Type *PointeeType, const SCEV *BaseExpr,
|
||||
|
||||
const SCEV *ScalarEvolution::getSMaxExpr(const SCEV *LHS,
|
||||
const SCEV *RHS) {
|
||||
SmallVector<const SCEV *, 2> Ops;
|
||||
Ops.push_back(LHS);
|
||||
Ops.push_back(RHS);
|
||||
SmallVector<const SCEV *, 2> Ops = {LHS, RHS};
|
||||
return getSMaxExpr(Ops);
|
||||
}
|
||||
|
||||
@@ -3125,9 +3123,7 @@ ScalarEvolution::getSMaxExpr(SmallVectorImpl<const SCEV *> &Ops) {
|
||||
|
||||
const SCEV *ScalarEvolution::getUMaxExpr(const SCEV *LHS,
|
||||
const SCEV *RHS) {
|
||||
SmallVector<const SCEV *, 2> Ops;
|
||||
Ops.push_back(LHS);
|
||||
Ops.push_back(RHS);
|
||||
SmallVector<const SCEV *, 2> Ops = {LHS, RHS};
|
||||
return getUMaxExpr(Ops);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user