Jonas Paulsson 550c65b3dd
[SystemZ] Allow folding from another MBB in foldMemoryOperandImpl(). (#182921)
After 7c1d517 "[SystemZ] Enable rematerialization for scalar loads
(#179838)", an assertion in foldMemoryOperandImpl() that checked
that the original load and the subsuming instruction are in the same
MBB started to fail.

There is no fundamental reason to not allow this, so this assertion has
been removed and this case is now handled as well by the search that
checks for CC liveness.
2026-02-25 08:17:38 +01:00
..