Fix some load instructions being incorrectly marked as invariant for LLVM

This resolves some possible cases of undefined behavior.