HomePhabricator

Revert r356304: remove subreg parameter from MachineIRBuilder::buildCopy()

Authored by aemerson on Mar 18 2019, 12:20 PM.

Description

Revert r356304: remove subreg parameter from MachineIRBuilder::buildCopy()

After review comments, it was preferred to not teach MachineIRBuilder about
non-generic instructions beyond using buildInstr().

For AArch64 I've changed the buildCopy() calls to buildInstr() + a
separate addReg() call.

This also relaxes the MachineIRBuilder's COPY checking more because it may
not always have a SrcOp given to it.

llvm-svn: 356396

Details

Committed
aemersonMar 18 2019, 12:20 PM
Parents
rG4aeea4cc4232: [DebugInfo][PDB] Don't write empty debug streams
Branches
Unknown
Tags
Unknown