Speculative execution is a further enhancement in which the code along the predicted path is executed before it is known whether the branch should be taken or not . Speculative execution is a further enhancement in which the code along the predicted path is not just prefetched but also executed before it is known whether the branch should be taken or not .