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 | 0897fce2f400ea677a252e6f873736bddf655d69 (patch) | |
tree | 91f0cd2cfe16fa92e5120cca5f6260ae5e4a4297 /llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp | |
parent | 9f11bc1956abeb654dbc98d9859a3fa3b8661b13 (diff) | |
download | bcm5719-llvm-0897fce2f400ea677a252e6f873736bddf655d69.tar.gz bcm5719-llvm-0897fce2f400ea677a252e6f873736bddf655d69.zip |
[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.
llvm-svn: 187883
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp b/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp index c2a6a7f1018..9ee60aa80c3 100644 --- a/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp +++ b/llvm/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; } } |