Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Mem2Reg] Always allow single-store optimization for dominating stores
In llvm#97711 the single-store optimization was disabled for the case where the value is potentially poison, as this may produce incorrect results for loads of uninitialized memory. However, this resulted in compile-time regressions. Address these by still allowing the single-store optimization to occur in cases where the store dominates the load, as we know that such a load will always read initialized memory. (cherry picked from commit daaea12)
- Loading branch information