Currently some CSE opportunities are missed because in a set of equivalent instructions the comparison is always done with the first instructions. If it happens that this first instruction doesn't dominate the others, none of them will be CSEed away. This series improve this by comparing instead pair of instructions adjacent in the CSE lists which improves locality and thus misses less CSE opportunities. Luc Van Oostenryck (2): cse: add testcase for missed opportunity cse: move to next comparable instruction cse.c | 2 ++ validation/optim/cse-cmp-next.c | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 validation/optim/cse-cmp-next.c -- 2.17.1 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html