diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-02-09 20:11:02 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-02-09 20:11:02 -0800 |
commit | 27bf5c95a27a55a459363b8e09d64e1e773a233d (patch) | |
tree | 869af2e144f47d84f040280d6bc8221a530df860 | |
parent | a8c22e4a055f75aa7af9f91e849b6b59aed84d5c (diff) | |
download | mu-27bf5c95a27a55a459363b8e09d64e1e773a233d.tar.gz |
2642
-rw-r--r-- | 057static_dispatch.cc | 2 | ||||
-rw-r--r-- | 059shape_shifting_recipe.cc | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/057static_dispatch.cc b/057static_dispatch.cc index 0bb23945..93a2e36e 100644 --- a/057static_dispatch.cc +++ b/057static_dispatch.cc @@ -176,7 +176,7 @@ void replace_best_variant(instruction& inst, const recipe& caller_recipe) { trace(9992, "transform") << "score for base: " << best_score << end(); for (long long int i = 0; i < SIZE(variants); ++i) { if (variants.at(i) == -1) continue; -//? trace(9992, "transform") << "checking variant " << i << ": " << variants.at(i) << end(); + trace(9992, "transform") << "checking variant " << i << ": " << header_label(variants.at(i)) << end(); long long int current_score = variant_score(inst, variants.at(i)); trace(9992, "transform") << "score for variant " << i << ": " << current_score << end(); if (current_score > best_score) { diff --git a/059shape_shifting_recipe.cc b/059shape_shifting_recipe.cc index dcd041ac..754d9e77 100644 --- a/059shape_shifting_recipe.cc +++ b/059shape_shifting_recipe.cc @@ -68,11 +68,9 @@ result.original_name = result.name; :(before "End Instruction Dispatch(inst, best_score)") if (best_score == -1) { - trace(9992, "transform") << "no variant found; searching for variant with suitable type ingredients" << end(); -//? cerr << "no variant found for " << inst.name << "; searching for variant with suitable type ingredients" << '\n'; + trace(9992, "transform") << "no variant found; checking for variant with suitable type ingredients" << end(); recipe_ordinal exemplar = pick_matching_shape_shifting_variant(variants, inst, best_score); if (exemplar) { -//? cerr << "specializing " << inst.name << '\n'; trace(9992, "transform") << "found variant to specialize: " << exemplar << ' ' << get(Recipe, exemplar).name << end(); recipe_ordinal new_recipe_ordinal = new_variant(exemplar, inst, caller_recipe); if (new_recipe_ordinal == 0) goto done_constructing_variant; @@ -128,7 +126,7 @@ recipe_ordinal pick_matching_shape_shifting_variant(vector<recipe_ordinal>& vari for (long long int i = 0; i < SIZE(variants); ++i) { if (variants.at(i) == -1) continue; // ghost from a previous test //? cerr << "-- variant " << i << "\n" << debug_string(get(Recipe, variants.at(i))); - trace(9992, "transform") << "checking shape-shifting variant " << i << end(); + trace(9992, "transform") << "checking shape-shifting variant " << i << ": " << header_label(variants.at(i)) << end(); long long int current_score = shape_shifting_variant_score(inst, variants.at(i)); trace(9992, "transform") << "final score: " << current_score << end(); //? cerr << get(Recipe, variants.at(i)).name << ": " << current_score << '\n'; |