optimize: pointer dereference when the variable pointed can be identified,
authoryu.dongliang <maja_creater@qq.com>
Wed, 19 Oct 2022 09:45:25 +0000 (17:45 +0800)
committeryu.dongliang <18588496441@163.com>
Mon, 22 Dec 2025 15:56:31 +0000 (23:56 +0800)
commite32c2f96ca4daafdbd9558b8657fd4fa8d3fb930
tree4b3ae78c638a41471774ba79bfee59b9cf7b212e
parentd2cb180bab1a0d2014949255d6e96a29599853ee
optimize: pointer dereference when the variable pointed can be identified,
such as:
int   a = 1;
int*  p = &a;
int** pp = &p;

**pp += 2; // this will be instead of 'a += 2', and 'p = &a; pp = &p' will be deleted.
core/scf_3ac.c
core/scf_optimizer_basic_block.c
core/scf_optimizer_pointer_alias.c