diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-04-19 19:10:21 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-04-19 19:10:21 +0000 |
commit | b4b27230bfe2f709aac4a82522a160981472c954 (patch) | |
tree | 054736e0d3b0b3d7f0705ed8c1939d62bac88b98 /llvm/lib/Analysis/LoopAccessAnalysis.cpp | |
parent | 01b705e9c05316fd5cfce9115449b72f5f8610c5 (diff) | |
download | bcm5719-llvm-b4b27230bfe2f709aac4a82522a160981472c954.tar.gz bcm5719-llvm-b4b27230bfe2f709aac4a82522a160981472c954.zip |
[ValueTracking, VectorUtils] Refactor getIntrinsicIDForCall
The functionality contained within getIntrinsicIDForCall is two-fold: it
checks if a CallInst's callee is a vectorizable intrinsic. If it isn't
an intrinsic, it attempts to map the call's target to a suitable
intrinsic.
Move the mapping functionality into getIntrinsicForCallSite and rename
getIntrinsicIDForCall to getVectorIntrinsicIDForCall while
reimplementing it in terms of getIntrinsicForCallSite.
llvm-svn: 266801
Diffstat (limited to 'llvm/lib/Analysis/LoopAccessAnalysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/LoopAccessAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/LoopAccessAnalysis.cpp b/llvm/lib/Analysis/LoopAccessAnalysis.cpp index 222005f6f00..a7122982212 100644 --- a/llvm/lib/Analysis/LoopAccessAnalysis.cpp +++ b/llvm/lib/Analysis/LoopAccessAnalysis.cpp @@ -1505,7 +1505,7 @@ void LoopAccessInfo::analyzeLoop(const ValueToValueMap &Strides) { // vectorize a loop if it contains known function calls that don't set // the flag. Therefore, it is safe to ignore this read from memory. CallInst *Call = dyn_cast<CallInst>(it); - if (Call && getIntrinsicIDForCall(Call, TLI)) + if (Call && getVectorIntrinsicIDForCall(Call, TLI)) continue; // If the function has an explicit vectorized counterpart, we can safely |