In a small skillet over medium heat, add the olive oil, corn, and salt. Cook until the corn has softened and is tender-crisp, about 4 minutes. Cool for 5 minutes.
Transfer the cooled corn to a blender and add the mayonnaise and garlic. Blend until mostly smooth.
To Store: Transfer to an airtight container and store in the refrigerator for 4 to 5 days.