mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 01:43:57 +00:00
[PowerPC] check for INLINEASM_BR along w/ INLINEASM
Summary: It looks like since INLINEASM_BR was created off of INLINEASM (r353563), a few checks for INLINEASM needed to be updated to check for either case. pr/41999 Reviewers: hfinkel Reviewed By: hfinkel Subscribers: nemanjai, hiraditya, kbarton, jsji, llvm-commits, craig.topper, srhines Tags: #llvm Differential Revision: https://reviews.llvm.org/D62403 llvm-svn: 362278
This commit is contained in:
parent
713939cc13
commit
44b226e7bd
@ -2013,7 +2013,7 @@ bool PPCInstrInfo::optimizeCompareInstr(MachineInstr &CmpInstr, unsigned SrcReg,
|
||||
unsigned PPCInstrInfo::getInstSizeInBytes(const MachineInstr &MI) const {
|
||||
unsigned Opcode = MI.getOpcode();
|
||||
|
||||
if (Opcode == PPC::INLINEASM) {
|
||||
if (Opcode == PPC::INLINEASM || Opcode == PPC::INLINEASM_BR) {
|
||||
const MachineFunction *MF = MI.getParent()->getParent();
|
||||
const char *AsmStr = MI.getOperand(0).getSymbolName();
|
||||
return getInlineAsmLength(AsmStr, *MF->getTarget().getMCAsmInfo());
|
||||
|
@ -422,6 +422,7 @@ bool PPCVSXSwapRemoval::gatherVectorInstructions() {
|
||||
// of opcodes having a common attribute in TableGen. Should this
|
||||
// change, this is a prime candidate to use such a mechanism.
|
||||
case PPC::INLINEASM:
|
||||
case PPC::INLINEASM_BR:
|
||||
case PPC::EXTRACT_SUBREG:
|
||||
case PPC::INSERT_SUBREG:
|
||||
case PPC::COPY_TO_REGCLASS:
|
||||
|
Loading…
x
Reference in New Issue
Block a user