diff options
author | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-08-07 11:10:06 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-08-07 11:10:06 +0000 |
commit | 29e873ddb6b21c4a934926a0cf7809e98ac1fff0 (patch) | |
tree | 62117d26b18e30c45cad7338dcc4e750b9918d7b /lib/Target/SystemZ/SystemZInstrInfo.cpp | |
parent | e0bbf7288c00c377a97a9d4bf5fb0bf20c44cd1c (diff) | |
download | llvm-29e873ddb6b21c4a934926a0cf7809e98ac1fff0.tar.gz llvm-29e873ddb6b21c4a934926a0cf7809e98ac1fff0.tar.bz2 llvm-29e873ddb6b21c4a934926a0cf7809e98ac1fff0.tar.xz |
[SystemZ] Optimize floating-point comparisons with zero
This follows the same lines as the integer code. In the end it seemed
easier to have a second 4-bit mask in TSFlags to specify the compare-like
CC values. That eats one more TSFlags bit than adding a CCHasUnordered
would have done, but it feels more concise.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187883 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZInstrInfo.cpp')
-rw-r--r-- | lib/Target/SystemZ/SystemZInstrInfo.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/SystemZ/SystemZInstrInfo.cpp b/lib/Target/SystemZ/SystemZInstrInfo.cpp index c2a6a7f101..9ee60aa80c 100644 --- a/lib/Target/SystemZ/SystemZInstrInfo.cpp +++ b/lib/Target/SystemZ/SystemZInstrInfo.cpp @@ -770,6 +770,9 @@ unsigned SystemZInstrInfo::getLoadAndTest(unsigned Opcode) const { case SystemZ::LR: return SystemZ::LTR; case SystemZ::LGFR: return SystemZ::LTGFR; case SystemZ::LGR: return SystemZ::LTGR; + case SystemZ::LER: return SystemZ::LTEBR; + case SystemZ::LDR: return SystemZ::LTDBR; + case SystemZ::LXR: return SystemZ::LTXBR; default: return 0; } } |