[PATCH] D62402: [AArch64] check for INLINEASM_BR along w/ INLINEASM
Nick Desaulniers via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 24 11:58:33 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL361661: [AArch64] check for INLINEASM_BR along w/ INLINEASM (authored by nickdesaulniers, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D62402?vs=201270&id=201301#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62402/new/
https://reviews.llvm.org/D62402
Files:
llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp
Index: llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp
===================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp
+++ llvm/trunk/lib/Target/AArch64/AArch64InstrInfo.cpp
@@ -76,8 +76,11 @@
const MachineFunction *MF = MBB.getParent();
const MCAsmInfo *MAI = MF->getTarget().getMCAsmInfo();
- if (MI.getOpcode() == AArch64::INLINEASM)
- return getInlineAsmLength(MI.getOperand(0).getSymbolName(), *MAI);
+ {
+ auto Op = MI.getOpcode();
+ if (Op == AArch64::INLINEASM || Op == AArch64::INLINEASM_BR)
+ return getInlineAsmLength(MI.getOperand(0).getSymbolName(), *MAI);
+ }
// FIXME: We currently only handle pseudoinstructions that don't get expanded
// before the assembly printer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62402.201301.patch
Type: text/x-patch
Size: 786 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190524/b6529213/attachment.bin>
More information about the llvm-commits
mailing list