aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/InlineCost.cpp
diff options
context:
space:
mode:
authorKirill Naumov <knaumov@azul.com>2020-06-17 14:02:29 +0000
committerKirill Naumov <knaumov@azul.com>2020-06-17 14:02:29 +0000
commitdcf2a9f2ee3a730d603d69f9fbc96fdd64a744ca (patch)
treed81d88f7ecd0ce0b2c2ac1ba6c0c3bd13fb9b900 /llvm/lib/Analysis/InlineCost.cpp
parent39a4505e34387d9e9165127a4f2fd64223f1d833 (diff)
downloadllvm-dcf2a9f2ee3a730d603d69f9fbc96fdd64a744ca.zip
llvm-dcf2a9f2ee3a730d603d69f9fbc96fdd64a744ca.tar.gz
llvm-dcf2a9f2ee3a730d603d69f9fbc96fdd64a744ca.tar.bz2
Revert "[InlineCost] PrinterPass prints constants to which instructions are simplified"
This reverts commit 52b0db22f8cfb594c32389224570681d2d2c2f21.
Diffstat (limited to 'llvm/lib/Analysis/InlineCost.cpp')
-rw-r--r--llvm/lib/Analysis/InlineCost.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/llvm/lib/Analysis/InlineCost.cpp b/llvm/lib/Analysis/InlineCost.cpp
index 0afc88d..fd4e7c7 100644
--- a/llvm/lib/Analysis/InlineCost.cpp
+++ b/llvm/lib/Analysis/InlineCost.cpp
@@ -402,12 +402,6 @@ public:
InlineResult analyze();
- Optional<Constant*> getSimplifiedValue(Instruction *I) {
- if (SimplifiedValues.find(I) != SimplifiedValues.end())
- return SimplifiedValues[I];
- return None;
- }
-
// Keep a bunch of stats about the cost savings found so we can print them
// out when debugging.
unsigned NumConstantArgs = 0;
@@ -772,11 +766,6 @@ void InlineCostAnnotationWriter::emitInstructionAnnot(const Instruction *I,
if (Record->hasThresholdChanged())
OS << ", threshold delta = " << Record->getThresholdDelta();
}
- auto C = ICCA->getSimplifiedValue(const_cast<Instruction *>(I));
- if (C) {
- OS << ", simplified to ";
- C.getValue()->print(OS, true);
- }
OS << "\n";
}
@@ -2556,4 +2545,4 @@ InlineCostAnnotationPrinterPass::run(Function &F,
}
}
return PreservedAnalyses::all();
-}
+} \ No newline at end of file