summaryrefslogtreecommitdiff
path: root/lib/Target/SystemZ/SystemZInstrInfo.h
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-08-05 11:03:20 +0000
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-08-05 11:03:20 +0000
commit9b05c709c65ba05645853ca49bc2a1ea8b554f37 (patch)
treec04c8f0d7f35c746616d7099f030b0ae55cc6a35 /lib/Target/SystemZ/SystemZInstrInfo.h
parent0e4044c233d10596578df35bae2483fbe4e8a507 (diff)
downloadllvm-9b05c709c65ba05645853ca49bc2a1ea8b554f37.tar.gz
llvm-9b05c709c65ba05645853ca49bc2a1ea8b554f37.tar.bz2
llvm-9b05c709c65ba05645853ca49bc2a1ea8b554f37.tar.xz
[SystemZ] Use LOAD AND TEST to eliminate comparisons against zero
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187720 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZInstrInfo.h')
-rw-r--r--lib/Target/SystemZ/SystemZInstrInfo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/SystemZ/SystemZInstrInfo.h b/lib/Target/SystemZ/SystemZInstrInfo.h
index 763a3956fc..1392745672 100644
--- a/lib/Target/SystemZ/SystemZInstrInfo.h
+++ b/lib/Target/SystemZ/SystemZInstrInfo.h
@@ -193,6 +193,10 @@ public:
// exists.
unsigned getOpcodeForOffset(unsigned Opcode, int64_t Offset) const;
+ // If Opcode is a load instruction that has a LOAD AND TEST form,
+ // return the opcode for the testing form, otherwise return 0.
+ unsigned getLoadAndTest(unsigned Opcode) const;
+
// Return true if ROTATE AND ... SELECTED BITS can be used to select bits
// Mask of the R2 operand, given that only the low BitSize bits of Mask are
// significant. Set Start and End to the I3 and I4 operands if so.