aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-12-06 09:53:09 +0000
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-12-06 09:53:09 +0000
commit48ef6abddc90162bdfa045dd793fb56803c2a62f (patch)
tree1eeac0f7e58efcb4ca13298cfd0a56321189f3f7 /llvm/lib/CodeGen/MachineScheduler.cpp
parent3cfa8e217e15d1ebb32a661dbc560a45d35cbda8 (diff)
downloadllvm-48ef6abddc90162bdfa045dd793fb56803c2a62f.zip
llvm-48ef6abddc90162bdfa045dd793fb56803c2a62f.tar.gz
llvm-48ef6abddc90162bdfa045dd793fb56803c2a62f.tar.bz2
[SystemZ] Optimize selects between 0 and -1
Since z has no setcc instruction as such, the choice of setBooleanContents is a bit arbitrary. Currently it's set to ZeroOrOneBooleanContent, so we produced a branch-free form when selecting between 0 and 1, but not when selecting between 0 and -1. This patch handles the latter case too. At some point I'd like to measure whether it's better to use conditional moves for constant selects on z196, but that's future work. llvm-svn: 196578
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions