aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/cse-label.c
AgeCommit message (Collapse)AuthorFilesLines
2020-11-21add a new instruction for label-as-valueLuc Van Oostenryck1-1/+0
Convert OP_SETVAL of a label into a new instruction: OP_LABEL. There is 2 reasons to do this: *) there is slightly less checking to be done in later phases (since OP_SETVAL can be for labels but also strings) *) OP_SETVAL is CSEd but this is largely useless because this instruction is hashed on the expression's address and these are (most) often not shared. With a separate instruction for label expressions, their CSE is now OK because the hashing is done on the BB. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2020-11-21add testcases for COMPUTEDGOTO simplificationLuc Van Oostenryck1-0/+14
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>