summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/LoopAccessAnalysis.cpp
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2017-02-23 21:17:36 +0000
committerAdam Nemet <anemet@apple.com>2017-02-23 21:17:36 +0000
commit41b019a39c184a121f758420e22075ee82330f0b (patch)
treee245ffa15bdf9b7be3c117e3065d7e1efd9b105c /llvm/lib/Analysis/LoopAccessAnalysis.cpp
parentbf0e69532c836fc6ba6af4a31d7fb4306677261b (diff)
downloadbcm5719-llvm-41b019a39c184a121f758420e22075ee82330f0b.tar.gz
bcm5719-llvm-41b019a39c184a121f758420e22075ee82330f0b.zip
[LAA] Remove unused LoopAccessReport
The need for this removed when I converted everything to use the opt-remark classes directly with the streaming interface. llvm-svn: 296017
Diffstat (limited to 'llvm/lib/Analysis/LoopAccessAnalysis.cpp')
-rw-r--r--llvm/lib/Analysis/LoopAccessAnalysis.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/llvm/lib/Analysis/LoopAccessAnalysis.cpp b/llvm/lib/Analysis/LoopAccessAnalysis.cpp
index db7245147d7..0e4e37fc727 100644
--- a/llvm/lib/Analysis/LoopAccessAnalysis.cpp
+++ b/llvm/lib/Analysis/LoopAccessAnalysis.cpp
@@ -135,21 +135,6 @@ bool VectorizerParams::isInterleaveForced() {
return ::VectorizationInterleave.getNumOccurrences() > 0;
}
-void LoopAccessReport::emitAnalysis(const LoopAccessReport &Message,
- const Loop *TheLoop, const char *PassName,
- OptimizationRemarkEmitter &ORE) {
- DebugLoc DL = TheLoop->getStartLoc();
- const Value *V = TheLoop->getHeader();
- if (const Instruction *I = Message.getInstr()) {
- // If there is no debug location attached to the instruction, revert back to
- // using the loop's.
- if (I->getDebugLoc())
- DL = I->getDebugLoc();
- V = I->getParent();
- }
- ORE.emitOptimizationRemarkAnalysis(PassName, DL, V, Message.str());
-}
-
Value *llvm::stripIntegerCast(Value *V) {
if (auto *CI = dyn_cast<CastInst>(V))
if (CI->getOperand(0)->getType()->isIntegerTy())
OpenPOWER on IntegriCloud