diff options
| author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2015-12-16 20:07:04 +0000 |
|---|---|---|
| committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2015-12-16 20:07:04 +0000 |
| commit | 4f9164d9b325eb33f8f93aba9578a409c66e4fcc (patch) | |
| tree | 737c9c0c30ca46da3f17f1d33c9bbf474ad7104d /llvm | |
| parent | 6c27a2c40ed1164a66b2f62604afc948bdc66d38 (diff) | |
| download | bcm5719-llvm-4f9164d9b325eb33f8f93aba9578a409c66e4fcc.tar.gz bcm5719-llvm-4f9164d9b325eb33f8f93aba9578a409c66e4fcc.zip | |
[Hexagon] Misc fixes to r255807
llvm-svn: 255811
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp b/llvm/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp index 52b026aad79..81850548bb6 100644 --- a/llvm/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp +++ b/llvm/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp @@ -462,13 +462,13 @@ static const MachineOperand &getPostIncrementOperand(const MachineInstr *MI, return MO; #else if (MI->mayLoad()) { - MachineOperand &Op1 = MI->getOperand(1); + const MachineOperand &Op1 = MI->getOperand(1); // The 2nd operand is always the post increment operand in load. assert(Op1.isReg() && "Post increment operand has be to a register."); return Op1; } if (MI->getDesc().mayStore()) { - MachineOperand &Op0 = MI->getOperand(0); + const MachineOperand &Op0 = MI->getOperand(0); // The 1st operand is always the post increment operand in store. assert(Op0.isReg() && "Post increment operand has be to a register."); return Op0; @@ -1162,16 +1162,11 @@ bool HexagonPacketizerList::isLegalToPacketizeTogether(SUnit *SUI, SUnit *SUJ) { MachineInstr *NextMI = NextMII; bool secondRegMatch = false; - bool maintainNewValueJump = false; const MachineOperand &NOp0 = NextMI->getOperand(0); const MachineOperand &NOp1 = NextMI->getOperand(1); - if (NOp1.isReg() && I->getOperand(0).getReg() == NOp1.getReg()) { + if (NOp1.isReg() && I->getOperand(0).getReg() == NOp1.getReg()) secondRegMatch = true; - maintainNewValueJump = true; - } else if (I->getOperand(0).getReg() == NOp0.getReg()) { - maintainNewValueJump = true; - } for (auto I : CurrentPacketMIs) { SUnit *PacketSU = MIToSUnit.find(I)->second; |

