Compiler-based resilience prediction and enhancements for GPU applications