aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/mem2reg/load-deadborn.c
AgeCommit message (Collapse)AuthorFilesLines
2018-02-14fix usage of deadborn loadsLuc Van Oostenryck1-0/+9
In some situations, loads and others instructions can be unreachable already when linearized, for example in code like: void foo(int *ptr) { return; *ptr; } Such loads are detected in find_dominating_stores() and must be discarded. This is done and the load have its opcode set to OP_LNOP (wich is only useful for debugging) but it's address is left as being used by the load. Fix this by removing the address usage. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>