Long term use of ibuprofen is linked with heart and liver issues, if I recall. I know I'm not citing a source here, just something I remember my wife telling me she read in a study, the best kind of evidence :)
FWIW, I've found ibuprofen to be the absolute best for my post-surgical pain. The issue is that it's 600-800mg every 6 hours to remain effective, and that's pushing some limits on dosage. Doctors have always told me fine in the short term, but bad longer term.
I know I'm saying this with a clear mind and pain free body right now, but I'm entirely unwilling to fill an opioid prescription in the future. The small amounts I've taken in the past for surgery were just too memorable - nothing should stick in your brain like that years after and be considered safe.