From b70daeec8c503ecab9e3531e7148feb4fc512481 Mon Sep 17 00:00:00 2001 From: Adam Nemet Date: Sun, 1 Feb 2015 16:56:05 +0000 Subject: [PATCH] [LoopVectorize] Make hasVectorInstrinsicScalarOpd inline VectorUtils.h needs to be included in LoopAccessAnalysis.cpp for getIntrinsicIDForCall but hasVectorInstrinsicScalarOpd is not used by this module. NFC. This is part of the patchset that splits out the memory dependence logic from LoopVectorizationLegality into a new class LoopAccessAnalysis. LoopAccessAnalysis will be used by the new Loop Distribution pass. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227753 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Transforms/Utils/VectorUtils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/Transforms/Utils/VectorUtils.h b/include/llvm/Transforms/Utils/VectorUtils.h index d20a1f8ee48..17bc9b56121 100644 --- a/include/llvm/Transforms/Utils/VectorUtils.h +++ b/include/llvm/Transforms/Utils/VectorUtils.h @@ -59,7 +59,7 @@ static inline bool isTriviallyVectorizable(Intrinsic::ID ID) { } } -static bool hasVectorInstrinsicScalarOpd(Intrinsic::ID ID, +static inline bool hasVectorInstrinsicScalarOpd(Intrinsic::ID ID, unsigned ScalarOpdIdx) { switch (ID) { case Intrinsic::ctlz: -- 2.34.1