Subcritical and supercritical bifurcations in axisymmetric viscoelastic pipe flows