Factor out Instruction::isSafeToSpeculativelyExecute's code for