hwcomposer: hint the compiler on some checks