forked from OSchip/llvm-project
Cleanup Reduction helpers by using ArrayRef(NoneType) constructor. NFCI.
Pointed out by @abataev on D45366. llvm-svn: 329431
This commit is contained in:
parent
306b1a0119
commit
1c50cb2077
|
@ -513,7 +513,7 @@ bool canSinkOrHoistInst(Instruction &I, AAResults *AA, DominatorTree *DT,
|
|||
Value *getShuffleReduction(IRBuilder<> &Builder, Value *Src, unsigned Op,
|
||||
RecurrenceDescriptor::MinMaxRecurrenceKind
|
||||
MinMaxKind = RecurrenceDescriptor::MRK_Invalid,
|
||||
ArrayRef<Value *> RedOps = ArrayRef<Value *>());
|
||||
ArrayRef<Value *> RedOps = None);
|
||||
|
||||
/// Create a target reduction of the given vector. The reduction operation
|
||||
/// is described by the \p Opcode parameter. min/max reductions require
|
||||
|
@ -525,7 +525,7 @@ createSimpleTargetReduction(IRBuilder<> &B, const TargetTransformInfo *TTI,
|
|||
unsigned Opcode, Value *Src,
|
||||
TargetTransformInfo::ReductionFlags Flags =
|
||||
TargetTransformInfo::ReductionFlags(),
|
||||
ArrayRef<Value *> RedOps = ArrayRef<Value *>());
|
||||
ArrayRef<Value *> RedOps = None);
|
||||
|
||||
/// Create a generic target reduction using a recurrence descriptor \p Desc
|
||||
/// The target is queried to determine if intrinsics or shuffle sequences are
|
||||
|
|
Loading…
Reference in New Issue