[PATCH] D58059: [AArch64] Print instruction before atomic semantic annotations
David Spickett via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 21 02:43:19 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL354565: [AArch64] Print instruction before atomic semantic annotations (authored by DavidSpickett, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D58059?vs=186642&id=187749#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58059/new/
https://reviews.llvm.org/D58059
Files:
llvm/trunk/lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp
Index: llvm/trunk/lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp
===================================================================
--- llvm/trunk/lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp
+++ llvm/trunk/lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp
@@ -69,11 +69,6 @@
return;
}
- if (atomicBarrierDroppedOnZero(Opcode) &&
- (MI->getOperand(0).getReg() == AArch64::XZR ||
- MI->getOperand(0).getReg() == AArch64::WZR))
- printAnnotation(O, "acquire semantics dropped since destination is zero");
-
// SBFM/UBFM should print to a nicer aliased form if possible.
if (Opcode == AArch64::SBFMXri || Opcode == AArch64::SBFMWri ||
Opcode == AArch64::UBFMXri || Opcode == AArch64::UBFMWri) {
@@ -297,6 +292,12 @@
printInstruction(MI, STI, O);
printAnnotation(O, Annot);
+
+ if (atomicBarrierDroppedOnZero(Opcode) &&
+ (MI->getOperand(0).getReg() == AArch64::XZR ||
+ MI->getOperand(0).getReg() == AArch64::WZR)) {
+ printAnnotation(O, "acquire semantics dropped since destination is zero");
+ }
}
static bool isTblTbxInstruction(unsigned Opcode, StringRef &Layout,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58059.187749.patch
Type: text/x-patch
Size: 1158 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190221/5482b83c/attachment.bin>
More information about the llvm-commits
mailing list