I once tried taking NSAID before doing my weights; I lifted heavier and performed more repetitions. It is beneficial, in terms of performance, because technically, you are under the drugs and its analgesic effect may push you harder. I didn’t do this because I wanted to, but I was having terrible headache at that time and I thought that a dose of endorphin could help me alleviate the pain with the help of ibuprofen.
It is reasonable that the sore you feel pre-workout, analgesics can help you. On the other hand, these drugs reduce the prostaglandin, a natural chemical produced by your body to protect the lining of your gastrointestinal tract. So under the stress of aerobic and aerobic training, you are putting more on your GI, making your stomach vulnerable to more acid.
I am not saying that taking anti-inflammatory drugs are prohibited before workout especially if it is intended to relieve the pain. Just make sure that you don’t do it habitually or any pretension of doing it for the sake of pushing more on your bench presses.