perf, x86: Clean up event constraints code a bit