This patch fixes a bug observed in OpenMP reductions that occured when the
Attributor would attempt to simplify loads. The attributor would incorrectly
think that the memory intrinsic did not write to memory, and would then replace
the associated load with undef which would be turned to NaN in the final
output. This behaviour is observed in https://godbolt.org/z/j531848dv on line
- This patch fixes https://bugs.llvm.org/show_bug.cgi?id=48607.