HomePhabricator

[MemCpyOpt] Don't hoist store that's not guaranteed to execute

Authored by nikic on Fri, Oct 9, 12:09 PM.

Description

[MemCpyOpt] Don't hoist store that's not guaranteed to execute

MemCpyOpt can hoist stores while load+store pairs into memcpy.
This hoisting can currently result in stores being executed that
weren't guaranteed to execute in the original problem.

Differential Revision: https://reviews.llvm.org/D89154