From 1c50cb2077393e4a0e3568868fe0068ce306b005 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Fri, 6 Apr 2018 17:25:06 +0000 Subject: [PATCH] Cleanup Reduction helpers by using ArrayRef(NoneType) constructor. NFCI. Pointed out by @abataev on D45366. llvm-svn: 329431 --- llvm/include/llvm/Transforms/Utils/LoopUtils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/Transforms/Utils/LoopUtils.h b/llvm/include/llvm/Transforms/Utils/LoopUtils.h index 4c2a59b1b898..6e854ed24a7e 100644 --- a/llvm/include/llvm/Transforms/Utils/LoopUtils.h +++ b/llvm/include/llvm/Transforms/Utils/LoopUtils.h @@ -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 RedOps = ArrayRef()); + ArrayRef 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 RedOps = ArrayRef()); + ArrayRef 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