It's not wether it fits. How big is the inside diameter? You're talking about putting a .22 compensator on a 9mm barrel. It's too late and I don't feel like doing the math, but what's a 9mm to a .22? Five or 6 times the diameter? You could be shaving and spraying hot lead all over the place, not to mention blowing something down range, if your lucky. You may want to study on that.
As for the HP compensators, they are infamous for looking like the were drug behind something for a few miles. Buff it up and spray on some stove paint. But they have a pretty tight tolerance of of their own. I've seen a few shave and spray lead right out of the box because they were not symetrical.
Of course, there's always the "duh" test. Will a 9mm fit into the muzzel of the compensator?