Fix some load instructions being incorrectly marked as invariant for LLVM

This resolves some possible cases of undefined behavior.
Merge pull request #890 from Ralith/fix-unsafe-invariant-loads

Fix some load instructions being incorrectly marked as invariant for LLVM