you should remember the iron law: computer time = instruction count * average CPI * clock cycle time
code size is related to programming language, algorithm, compiler, isa. if your code size is big that means instruction count probabily big too, so computer time increases.
if you mean some compiler optimization technique, such as loop unrolling, it's sure code size will increase, cache hit rate will increate too. such ILP definitely will go faster.