[llvm] r235516 - [Hexagon] Treat CFI as solo instructions
Krzysztof Parzyszek
kparzysz at codeaurora.org
Wed Apr 22 08:47:36 PDT 2015
Author: kparzysz
Date: Wed Apr 22 10:47:35 2015
New Revision: 235516
URL: http://llvm.org/viewvc/llvm-project?rev=235516&view=rev
Log:
[Hexagon] Treat CFI as solo instructions
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp?rev=235516&r1=235515&r2=235516&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp Wed Apr 22 10:47:35 2015
@@ -950,6 +950,9 @@ bool HexagonPacketizerList::ignorePseudo
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::ignorePseudo
// 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:
More information about the llvm-commits
mailing list