I assume that you are talking about compiling
f(BigInt(2)). The former is a function, while the latter is a value.
The compiler doesn’t use the values of your inputs, only the types (except when it comes to constant propagation.) Otherwise, you would have to recompile the code each time you call it with a new value.
There is a slight ambiguity to your question, though. If you actually mean compile
f(BigInt(2)), for example, if you have a larger code, and
f(BigInt(2)) is on one of those lines, written out with a literal number
2; then, yes, the compiler might do the job of getting the value of
f(BigInt(2)^128), and in that case the difference might change compilation times.
But, most likely, you actually want to know about compiling