aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Documentation
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2017-04-18 14:49:38 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2021-03-08 01:30:54 +0100
commit3caeefd911a54289bbf7d293289964239a6fed96 (patch)
treea7353efee7b502cb2c3792919fac4676787b8583 /Documentation
parent60c1f2706e30eacc29296e6cb5d9327c85a01340 (diff)
downloadsparse-dev-3caeefd911a54289bbf7d293289964239a6fed96.tar.gz
phi-sources can only have a single user (or none)
Currently, OP_PHISOURCES have a list as member, 'phi_users', that should link to all phi-nodes using them but: *) phi-sources are never shared between phi-nodes *) this list is useless because it's only created during liveness and not used after. So, replace the list by a simple pointer to hold the unique phi-node using it and keep this link updated during all its lifetime. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/IR.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/IR.rst b/Documentation/IR.rst
index 38df84ff..0cc90ec0 100644
--- a/Documentation/IR.rst
+++ b/Documentation/IR.rst
@@ -381,7 +381,7 @@ Others
* .phi_src: operand (type must be compatible with .target, alias .src)
* .target: the "result" PSEUDO_PHI
* .type: type of .target
- * .phi_users: list of phi instructions using the target pseudo
+ * .phi_node: the unique phi instruction using the target pseudo
.. op:: OP_CALL
Function call.