File tree Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -148,13 +148,6 @@ void Evaluator::printDependencies(
148
148
out.resetColor ();
149
149
}
150
150
151
- // Print the cached value, if known.
152
- auto cachedValue = cache.find (request);
153
- if (cachedValue != cache.end ()) {
154
- out << " -> " ;
155
- printEscapedString (cachedValue->second .getAsString (), out);
156
- }
157
-
158
151
if (!visitedAnywhere.insert (request).second ) {
159
152
// We've already seed this node. Check whether it's part of a cycle.
160
153
if (std::find (visitedAlongPath.begin (), visitedAlongPath.end (), request)
@@ -313,11 +306,6 @@ void Evaluator::printDependenciesGraphviz(llvm::raw_ostream &out) const {
313
306
out << " [label=\" " ;
314
307
printEscapedString (request.getAsString (), out);
315
308
316
- auto cachedValue = cache.find (request);
317
- if (cachedValue != cache.end ()) {
318
- out << " -> " ;
319
- printEscapedString (cachedValue->second .getAsString (), out);
320
- }
321
309
out << " \" " ;
322
310
323
311
if (auto color = getColor (request)) {
Original file line number Diff line number Diff line change @@ -265,8 +265,8 @@ TEST(ArithmeticEvaluator, Simple) {
265
265
}
266
266
267
267
EXPECT_EQ (productDependencies,
268
- " `--InternallyCachedEvaluationRule(Binary: product) -> 2.461145e+02 \n "
269
- " `--InternallyCachedEvaluationRule(Binary: sum) -> 5.859870e+00 \n "
268
+ " `--InternallyCachedEvaluationRule(Binary: product)\n "
269
+ " `--InternallyCachedEvaluationRule(Binary: sum)\n "
270
270
" | `--InternallyCachedEvaluationRule(Literal: 3.141590e+00)\n "
271
271
" | `--InternallyCachedEvaluationRule(Literal: 2.718280e+00)\n "
272
272
" `--InternallyCachedEvaluationRule(Literal: 4.200000e+01)\n " );
@@ -311,8 +311,8 @@ TEST(ArithmeticEvaluator, Simple) {
311
311
" request_2 [label=\" ExternallyCachedEvaluationRule(Literal: 2.718280e+00)\" ];\n "
312
312
" request_3 [label=\" ExternallyCachedEvaluationRule(Literal: 3.141590e+00)\" ];\n "
313
313
" request_4 [label=\" ExternallyCachedEvaluationRule(Literal: 4.200000e+01)\" ];\n "
314
- " request_5 [label=\" InternallyCachedEvaluationRule(Binary: product) -> 2.461145e+02 \" ];\n "
315
- " request_6 [label=\" InternallyCachedEvaluationRule(Binary: sum) -> 5.859870e+00 \" ];\n "
314
+ " request_5 [label=\" InternallyCachedEvaluationRule(Binary: product)\" ];\n "
315
+ " request_6 [label=\" InternallyCachedEvaluationRule(Binary: sum)\" ];\n "
316
316
" request_7 [label=\" InternallyCachedEvaluationRule(Literal: 2.718280e+00)\" ];\n "
317
317
" request_8 [label=\" InternallyCachedEvaluationRule(Literal: 3.141590e+00)\" ];\n "
318
318
" request_9 [label=\" InternallyCachedEvaluationRule(Literal: 4.200000e+01)\" ];\n "
You can’t perform that action at this time.
0 commit comments