HomePhabricator

[MachineOutliner][NFC] Simplify isMBBSafeToOutlineFrom check in AArch64 outliner

Authored by paquette on Nov 12 2018, 4:32 PM.

Description

[MachineOutliner][NFC] Simplify isMBBSafeToOutlineFrom check in AArch64 outliner

Turns out it's way simpler to do this check with one LRU. Instead of
maintaining two, just keep one. Check if each of the registers is available,
and then check if it's a live out from the block. If it's a live out, but
available in the block, we know we're in an unsafe case.

llvm-svn: 346721

Details

Committed
paquetteNov 12 2018, 4:32 PM
Parents
rGcc633af55b74: Introduce DebugCounter into ConstProp pass
Branches
Unknown
Tags
Unknown