[Hexagon] Treat CFI as solo instructions
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 22 Apr 2015 15:47:35 +0000 (15:47 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Wed, 22 Apr 2015 15:47:35 +0000 (15:47 +0000)
llvm-svn: 235516

llvm/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp

index 4ca628ef8124012d9d273037429c07625b3e84c9..0cc59bcc7671c6285f0d1121ad0ececd61367bdb 100644 (file)
@@ -950,6 +950,9 @@ bool HexagonPacketizerList::ignorePseudoInstruction(MachineInstr *MI,
   if (MI->isDebugValue())
     return true;
 
+  if (MI->isCFIInstruction())
+    return false;
+
   // We must print out inline assembly
   if (MI->isInlineAsm())
     return false;
@@ -967,11 +970,10 @@ bool HexagonPacketizerList::ignorePseudoInstruction(MachineInstr *MI,
 // isSoloInstruction: - Returns true for instructions that must be
 // scheduled in their own packet.
 bool HexagonPacketizerList::isSoloInstruction(MachineInstr *MI) {
-
-  if (MI->isInlineAsm())
+  if (MI->isEHLabel() || MI->isCFIInstruction())
     return true;
 
-  if (MI->isEHLabel())
+  if (MI->isInlineAsm())
     return true;
 
   // From Hexagon V4 Programmer's Reference Manual 3.4.4 Grouping constraints: