Even if the foam doesn't compress under the spread out weight of the liner I'd be worried about the legs sinking/pressing down the foam. How about wood blocks of the same height as the foam for the feet to test on? You would have to cut a square out of the foam for each foot that is on it and replace it with a square of wood of the same height.
Just a thought...
My plan was to use bricks & wood under the legs instead of the foam, but in the end I decided not to. The foam is very strong, I can stand on it with one foot while lifting up on the partially filled pool and the foam does not compress. It's rated for 3600lbs per sq ft. I bought the densest foam they had at the store. Also it would not be easy to match each leg to the foam height, since it varies a lot.