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 <maja_creater@qq.com>
Wed, 19 Oct 2022 09:45:29 +0000 (17:45 +0800)
commit03c4d20cddbeb9bbc0c7cde982a538d40160eab6
tree4b3ae78c638a41471774ba79bfee59b9cf7b212e
parent46b6e4a099fc213368a49fa24653f50384183dd5
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