[SystemZ] Add conditional store patterns
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Thu, 27 Jun 2013 09:27:40 +0000 (09:27 +0000)
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>
Thu, 27 Jun 2013 09:27:40 +0000 (09:27 +0000)
commit722e9e6d0a5b67d136be40bc015abc5b0b32f97b
treef9ae085555e83a9388d7f2970bd64d34a3eb3fc5
parentd51a790bec0d0f88621b8771af4ecf9dbf63cd59
[SystemZ] Add conditional store patterns

Add pseudo conditional store instructions, so that we use:

    branch foo:
    store
foo:

instead of:

    load
    branch foo:
    move
foo:
    store

z196 has real 32-bit and 64-bit conditional stores, but we don't use
any z196 instructions yet.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185065 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
lib/Target/SystemZ/SystemZISelLowering.cpp
lib/Target/SystemZ/SystemZISelLowering.h
lib/Target/SystemZ/SystemZInstrFP.td
lib/Target/SystemZ/SystemZInstrFormats.td
lib/Target/SystemZ/SystemZInstrInfo.td
lib/Target/SystemZ/SystemZOperators.td
lib/Target/SystemZ/SystemZPatterns.td
test/CodeGen/SystemZ/cond-store-01.ll [new file with mode: 0644]
test/CodeGen/SystemZ/cond-store-02.ll [new file with mode: 0644]
test/CodeGen/SystemZ/cond-store-03.ll [new file with mode: 0644]
test/CodeGen/SystemZ/cond-store-04.ll [new file with mode: 0644]
test/CodeGen/SystemZ/cond-store-05.ll [new file with mode: 0644]
test/CodeGen/SystemZ/cond-store-06.ll [new file with mode: 0644]