Merge "Fix checks for kLiteral in local optimizations."