summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ
diff options
context:
space:
mode:
authorJonas Paulsson <jonas.paulsson@ericsson.com>2015-10-26 15:03:41 +0000
committerJonas Paulsson <jonas.paulsson@ericsson.com>2015-10-26 15:03:41 +0000
commit7da382088251e868a8cb9313c2f8fda58e4b2801 (patch)
tree386525e282c5ca052b3200a5bf6903bb33392967 /llvm/lib/Target/SystemZ
parent9525b2c0c8d037cdb5e13091f193d4b847677a69 (diff)
downloadbcm5719-llvm-7da382088251e868a8cb9313c2f8fda58e4b2801.tar.gz
bcm5719-llvm-7da382088251e868a8cb9313c2f8fda58e4b2801.zip
[SystemZ] Also clear kill flag for index reg in splitMove().
Discovered by running fp-move-05.ll with -verify-machineinstrs (added to test case run). llvm-svn: 251298
Diffstat (limited to 'llvm/lib/Target/SystemZ')
-rw-r--r--llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp b/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
index 5d7accc6c0e..b16c0ad3425 100644
--- a/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
@@ -69,8 +69,10 @@ void SystemZInstrInfo::splitMove(MachineBasicBlock::iterator MI,
MachineOperand &LowOffsetOp = MI->getOperand(2);
LowOffsetOp.setImm(LowOffsetOp.getImm() + 8);
- // Clear the kill flag for the address reg in the first instruction.
+ // Clear the kill flags for the base and index registers in the first
+ // instruction.
EarlierMI->getOperand(1).setIsKill(false);
+ EarlierMI->getOperand(3).setIsKill(false);
// Set the opcodes.
unsigned HighOpcode = getOpcodeForOffset(NewOpcode, HighOffsetOp.getImm());
OpenPOWER on IntegriCloud