[llvm] r227753 - [LoopVectorize] Make hasVectorInstrinsicScalarOpd inline

Adam Nemet anemet at apple.com
Sun Feb 1 08:56:06 PST 2015


Author: anemet
Date: Sun Feb  1 10:56:05 2015
New Revision: 227753

URL: http://llvm.org/viewvc/llvm-project?rev=227753&view=rev
Log:
[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.

Modified:
    llvm/trunk/include/llvm/Transforms/Utils/VectorUtils.h

Modified: llvm/trunk/include/llvm/Transforms/Utils/VectorUtils.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/Utils/VectorUtils.h?rev=227753&r1=227752&r2=227753&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/Utils/VectorUtils.h (original)
+++ llvm/trunk/include/llvm/Transforms/Utils/VectorUtils.h Sun Feb  1 10:56:05 2015
@@ -59,7 +59,7 @@ static inline bool isTriviallyVectorizab
   }
 }
 
-static bool hasVectorInstrinsicScalarOpd(Intrinsic::ID ID,
+static inline bool hasVectorInstrinsicScalarOpd(Intrinsic::ID ID,
                                          unsigned ScalarOpdIdx) {
   switch (ID) {
     case Intrinsic::ctlz:





More information about the llvm-commits mailing list