about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-09-06 13:51:46 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-09-06 13:51:46 -0700
commit5df25864eb449b407a9ab6244045cd4451e1d6fb (patch)
tree4fb6479c88ab6f028ccda1bcdfa5a3b13189d140
parent40278ae590ec48dadcfea27eca93026a7b25e9ff (diff)
downloadmu-5df25864eb449b407a9ab6244045cd4451e1d6fb.tar.gz
3300
-rw-r--r--030container.cc2
-rw-r--r--036refcount.cc3
2 files changed, 4 insertions, 1 deletions
diff --git a/030container.cc b/030container.cc
index c1b682c6..80d3e259 100644
--- a/030container.cc
+++ b/030container.cc
@@ -165,6 +165,8 @@ if (t.kind == CONTAINER) {
 
 //: precompute Container_metadata before we need size_of
 //: also store a copy in each reagent in each instruction in each recipe
+//: does unnecessary work for meaningless types
+//:   e.g. (address number) also computes size of 'address'
 
 :(after "Begin Instruction Modifying Transforms")  // needs to happen before transform_names, therefore after "End Type Modifying Transforms" below
 Transform.push_back(compute_container_sizes);
diff --git a/036refcount.cc b/036refcount.cc
index c6e41471..80289641 100644
--- a/036refcount.cc
+++ b/036refcount.cc
@@ -277,9 +277,10 @@ bool operator<(const address_element_info& a, const address_element_info& b) {
   return false;  // equal
 }
 
-
 //: populate metadata.address in a separate transform, because it requires
 //: already knowing the sizes of all types
+//: does unnecessary work for meaningless types
+//:   e.g. (address number) also computes address offsets for 'address'
 
 :(after "Transform.push_back(compute_container_sizes)")
 Transform.push_back(compute_container_address_offsets);