Push the cooked sweet potato through a sieve or ricer into a bowl, for a smooth puree.
Finely chop the garlic on a cutting board, then add the salt and crush the garlic using the flat side of the knife to obtain a smooth puree. Whisk it into the sweet potato, along with the olive oil.