aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/example.c
diff options
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-12-10 12:30:03 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:05:54 -0700
commit33c56a457c94f3f5459767cabd086e952f6d60de (patch)
treec1d0ea33de8a3a8e814ed1eca778ae75bd65196e /example.c
parentd83a98eabfe4b949d98ecfaf47afc86025091a7f (diff)
downloadsparse-dev-33c56a457c94f3f5459767cabd086e952f6d60de.tar.gz
Add comment about input storage selection.
Diffstat (limited to 'example.c')
-rw-r--r--example.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/example.c b/example.c
index a54977f8..33422ed0 100644
--- a/example.c
+++ b/example.c
@@ -264,6 +264,13 @@ static struct hardreg *fill_reg(struct bb_state *state, struct hardreg *hardreg,
}
}
}
+
+ /*
+ * Incoming pseudo with out any pre-set storage allocation?
+ * We can make up our own, and obviously prefer to get it
+ * in the register we already selected (if it hasn't been
+ * used yet).
+ */
if (src->storage->type == REG_UDEF) {
if (!hardreg->used) {
src->storage->type = REG_REG;