Thanks to user Cuhrazatee (comments to my other question here) I came accross article Nonlinear quantum mechanics implies polynomial-time solution for NP-complete and #P problems by D. Abrams and S. Lloyd.
In the article, it is stated that:
The implications of nonlinear quantum mechanics on the theory of computation are profound. In particular, we show that it is generally possible to exploit nonlinear time evolution so that the classes of problems NP and #P (including oracle problems) may be solved in polynomial time.
This means that if quantum mechanics were non-linear then it would hold that $P = NP$. Authors of the article therefore say:
In concluding, we would like to note that we believe that quantum mechanics is in all likelihood exactly linear, and that the above conclusions might be viewed most profitably as further evidence that this is indeed the case.
However, I would not say that we know that $P \ne NP$ for sure as this is still unproven conjecture. Of course, it maybe that $P=NP$ and quantum mechanics to be linear at the same time. As quantum mechanics is probably the most thoroughly tested physical theory, it seems that it is linear and the article is just thought experiment similar to ones investigating what would happen if physical constants had different value or space-time metrics are altered.
Despite this, I would like to ask if above mentioned speculation has been investigated further. Any reference would be highly appreciated.
EDIT: Here is a related question on construction of non-linear OR gate described in the paper above.