HomePhabricator

[SystemZ] Improve foldMemoryOperandImpl().

Authored by jonpa on Nov 5 2019, 5:28 AM.

Description

[SystemZ] Improve foldMemoryOperandImpl().

Swap the compare operands if LHS is spilled while updating the CCMask:s of
the CC users. This is relatively straight forward since the live-in lists for
the CC register can be assumed to be correct during register allocation
(thanks to 659efa2).

Also fold a spilled operand of an LOCR/SELR into an LOC(G).

Review: Ulrich Weigand

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

Details

Committed
jonpaMar 10 2020, 7:54 AM
Differential Revision
D67437: [SystemZ] Improve foldMemoryOperandImpl().
Parents
rG14219aa442a4: [gn build] Port 714466bf367
Branches
Unknown
Tags
Unknown