diff options
author | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-10-16 11:10:55 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@linux.vnet.ibm.com> | 2013-10-16 11:10:55 +0000 |
commit | f722a8e30eb48bcdb1cc25e9c62ac5f23de35da8 (patch) | |
tree | add89961106f88319853b4de8c83882324118396 /llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp | |
parent | 374a0e50c4ea267bc98c10aafab3661356231701 (diff) | |
download | bcm5719-llvm-f722a8e30eb48bcdb1cc25e9c62ac5f23de35da8.tar.gz bcm5719-llvm-f722a8e30eb48bcdb1cc25e9c62ac5f23de35da8.zip |
[SystemZ] Improve handling of SETCC
We previously used the default expansion to SELECT_CC, which in turn would
expand to "LHI; BRC; LHI". In most cases it's better to use an IPM-based
sequence instead.
llvm-svn: 192784
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp b/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp index 83e023f002e..2ebbc0d81ae 100644 --- a/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp +++ b/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp @@ -449,7 +449,7 @@ static bool removeIPMBasedCompare(MachineInstr *Compare, unsigned SrcReg, return false; MachineInstr *SRL = getDef(RLL->getOperand(1).getReg(), MRI); - if (!SRL || !isShift(SRL, SystemZ::SRL, 28)) + if (!SRL || !isShift(SRL, SystemZ::SRL, SystemZ::IPM_CC)) return false; MachineInstr *IPM = getDef(SRL->getOperand(1).getReg(), MRI); |