HomePhabricator

[NFC][PowerPC]Assert when trying to generate directmove below P8.

Authored by jsji on Mar 12 2019, 7:01 AM.

Description

[NFC][PowerPC]Assert when trying to generate directmove below P8.

This was found when we generated COPY from G8RC to F8RC in
EmitInstrWithCustomInserter without checking proper architecture,
we silently generated mtvsrd, which require P8 and up.

This is a NFC patch to add assert when we call copyPhysReg, in case
someone accidentally generate COPY between G8RC to F8RC for P7 and
below.

llvm-svn: 355920

Details

Committed
jsjiMar 12 2019, 7:01 AM
Parents
rG44957b5fdda5: [pstl] Deprecate non-CMake based build
Branches
Unknown
Tags
Unknown