summaryrefslogtreecommitdiff
path: root/lib/Target/SystemZ/SystemZISelLowering.cpp
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-05-29 11:58:52 +0000
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-05-29 11:58:52 +0000
commit2d664abbfca8b9fa3d99e8a2f74bd52faf007f12 (patch)
treeef3e64c5251a4118e32a0393799793277d7259f4 /lib/Target/SystemZ/SystemZISelLowering.cpp
parentb8303eb654c1ba1833cfd048ed1f01309b19afe2 (diff)
downloadllvm-2d664abbfca8b9fa3d99e8a2f74bd52faf007f12.tar.gz
llvm-2d664abbfca8b9fa3d99e8a2f74bd52faf007f12.tar.bz2
llvm-2d664abbfca8b9fa3d99e8a2f74bd52faf007f12.tar.xz
[SystemZ] Immediate compare-and-branch support
This patch adds support for the CIJ and CGIJ instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182846 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZISelLowering.cpp')
-rw-r--r--lib/Target/SystemZ/SystemZISelLowering.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/SystemZ/SystemZISelLowering.cpp b/lib/Target/SystemZ/SystemZISelLowering.cpp
index 03a6da6dc4..ae520e1f2a 100644
--- a/lib/Target/SystemZ/SystemZISelLowering.cpp
+++ b/lib/Target/SystemZ/SystemZISelLowering.cpp
@@ -1624,7 +1624,8 @@ convertPrevCompareToBranch(MachineBasicBlock *MBB,
while (Compare->isDebugValue());
const SystemZInstrInfo *TII = TM.getInstrInfo();
- unsigned FusedOpcode = TII->getCompareAndBranch(Compare->getOpcode());
+ unsigned FusedOpcode = TII->getCompareAndBranch(Compare->getOpcode(),
+ Compare);
if (!FusedOpcode)
return false;