[llvm] r302030 - [Hexagon] Add memory operands to a rewritten load
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Wed May 3 08:26:13 PDT 2017
Author: kparzysz
Date: Wed May 3 10:26:13 2017
New Revision: 302030
URL: http://llvm.org/viewvc/llvm-project?rev=302030&view=rev
Log:
[Hexagon] Add memory operands to a rewritten load
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp?rev=302030&r1=302029&r2=302030&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonInstrInfo.cpp Wed May 3 10:26:13 2017
@@ -1140,8 +1140,9 @@ bool HexagonInstrInfo::expandPostRAPseud
unsigned Offset = Is128B ? VecOffset << 7 : VecOffset << 6;
MachineInstr *MI1New = BuildMI(MBB, MI, DL, get(NewOpc),
HRI.getSubReg(DstReg, Hexagon::vsub_lo))
- .add(MI.getOperand(1))
- .addImm(MI.getOperand(2).getImm());
+ .add(MI.getOperand(1))
+ .addImm(MI.getOperand(2).getImm())
+ .setMemRefs(MI.memoperands_begin(), MI.memoperands_end());
MI1New->getOperand(1).setIsKill(false);
BuildMI(MBB, MI, DL, get(NewOpc), HRI.getSubReg(DstReg, Hexagon::vsub_hi))
.add(MI.getOperand(1))
More information about the llvm-commits
mailing list