Compiler and Runtime Optimization of Computational Kernels for Irregular Applications