summaryrefslogtreecommitdiffstats
path: root/clang/tools/c-index-test
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-04-18 22:15:08 +0000
committerHal Finkel <hfinkel@anl.gov>2013-04-18 22:15:08 +0000
commit82656cb200b1cf91a95b16a14676ce81bddc890b (patch)
tree78b80a54c0f298680c1eeb4e13d3c1d962d0fd73 /clang/tools/c-index-test
parent1582ee6840bc45b1c7dcab37d89c913f97ef6aac (diff)
downloadbcm5719-llvm-82656cb200b1cf91a95b16a14676ce81bddc890b.tar.gz
bcm5719-llvm-82656cb200b1cf91a95b16a14676ce81bddc890b.zip
Implement optimizeCompareInstr for PPC
Many PPC instructions have a so-called 'record form' which stores to a specific condition register the result of comparing the result of the instruction with zero (always as a signed comparison). For integer operations on PPC64, this is always a 64-bit comparison. This implementation is derived from the implementation in the ARM backend; there are some differences because PPC condition registers are allocatable virtual registers (although the record forms always use a specific one), and we look for a matching subtraction instruction after the compare (but before the first use) in addition to before it. llvm-svn: 179802
Diffstat (limited to 'clang/tools/c-index-test')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud