HomePhabricator

Fix RegScavenger::unprocess

Authored by greened on Jul 23 2018, 1:23 PM.

Description

Fix RegScavenger::unprocess

RegScavenger::unprocess walks backward, so it should undo the effects
of defs before undoing effects of kills. Previously it did things in
the opposite order, leaving a register apparently unused (dead) in the
case where an instruction both used (killed) and defined a register.

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

llvm-svn: 337735

Details

Committed
greenedJul 23 2018, 1:23 PM
Differential Revision
D42200: Fix RegScavenger::unprocess
Parents
rG5af81d5bfac9: Add inline asm aliasing test.
Branches
Unknown
Tags
Unknown