what’s the criteria SQL server (2014) will automatically recompile a stored procedure which has table variables?
Tables variables doesn't trigger recompile.
Well, they do, but not until SQL Server 2019 where they are treated as temp tables in this aspect.