iphone upgrade - did it back up?
iTunes creates a backup of your iPhone everytime you sync it, not only when you upgrade it.

If in doubt, sync the iPhone before upgrading.

Here is an Apple Support article about the subject: http://support.apple.com/kb/ht1766