Fix the Load/Store optimization pass to work with Thumb1.

Patch by Moritz Roth!