Technically, the 3/5 compromise was to give certain states more representation in the House.The Southern states were given extra electoral college votes for their slaves. That is a historical fact, no matter how much a MAGA troll like you tries to spin it.
Modernly, the current interpretation of the 14th Amendment (counting all "persons") does the same thing.