aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/array-implicit-size.c
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-11-26 21:11:07 +0100
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2020-11-26 22:25:49 +0100
commitfe9dbeb3d0ab6b12448e0eed96df1b8499d91c3c (patch)
treee43a979c000ebedf56d3ff70fcd78e06218bb6da /validation/array-implicit-size.c
parent540c2c4bf47f0c517c042ff689679b2900bb36a5 (diff)
downloadsparse-dev-fe9dbeb3d0ab6b12448e0eed96df1b8499d91c3c.tar.gz
fix trivial_phi() when the target is before the single value
A phi-node is called 'trivial' if it only reference itself and a single other value. In this case the only possible value for the phi-node is this single other value which can thus replace the phi-node. However, the current code get this slightly wrong when the first referenced value is itself and not the other value. Fix this by moving up the test checking if it references itself. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/array-implicit-size.c')
0 files changed, 0 insertions, 0 deletions