diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2015-04-22 18:25:53 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2015-04-22 18:25:53 +0000 |
commit | cd97c985c75694b20b87a3287a50ff8160f85db9 (patch) | |
tree | 03654203704c9bcddde30163b2887ac4bc524755 /llvm/lib/Target/Hexagon/HexagonSplitConst32AndConst64.cpp | |
parent | d2db881e8552ec3e5a1b20f91e8d07d6424d6855 (diff) | |
download | bcm5719-llvm-cd97c985c75694b20b87a3287a50ff8160f85db9.tar.gz bcm5719-llvm-cd97c985c75694b20b87a3287a50ff8160f85db9.zip |
[Hexagon] Use A2_tfrsi for constant pool and jump table addresses
llvm-svn: 235535
Diffstat (limited to 'llvm/lib/Target/Hexagon/HexagonSplitConst32AndConst64.cpp')
-rw-r--r-- | llvm/lib/Target/Hexagon/HexagonSplitConst32AndConst64.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonSplitConst32AndConst64.cpp b/llvm/lib/Target/Hexagon/HexagonSplitConst32AndConst64.cpp index 1a4c7ae6f2b..4efb5f75af6 100644 --- a/llvm/lib/Target/Hexagon/HexagonSplitConst32AndConst64.cpp +++ b/llvm/lib/Target/Hexagon/HexagonSplitConst32AndConst64.cpp @@ -83,19 +83,8 @@ bool HexagonSplitConst32AndConst64::runOnMachineFunction(MachineFunction &Fn) { while (MII != MIE) { MachineInstr *MI = MII; int Opc = MI->getOpcode(); - if (Opc == Hexagon::CONST32_set_jt) { - int DestReg = MI->getOperand(0).getReg(); - MachineOperand &Symbol = MI->getOperand (1); - BuildMI (*MBB, MII, MI->getDebugLoc(), - TII->get(Hexagon::A2_tfrsi), DestReg).addOperand(Symbol); - - // MBB->erase returns the iterator to the next instruction, which is the - // one we want to process next - MII = MBB->erase (MI); - continue; - } - else if (Opc == Hexagon::CONST32_Int_Real && - MI->getOperand(1).isBlockAddress()) { + if (Opc == Hexagon::CONST32_Int_Real && + MI->getOperand(1).isBlockAddress()) { int DestReg = MI->getOperand(0).getReg(); MachineOperand &Symbol = MI->getOperand (1); |