llvm-6502/test
Richard Sandiford 0416e3c599 [SystemZ] Move compare-and-branch generation even later
r187116 moved compare-and-branch generation from the instruction-selection
pass to the peephole optimizer (via optimizeCompare).  It turns out that even
this is a bit too early.  Fused compare-and-branch instructions don't
interact well with predication, where a CC result is needed.  They also
make it harder to reuse the CC side-effects of earlier instructions
(not yet implemented, but the subject of a later patch).

Another problem was that the AnalyzeBranch family of routines weren't
handling compares and branches, so we weren't able to reverse the fused
form in cases where we would reverse a separate branch.  This could have
been fixed by extending AnalyzeBranch, but given the other problems,
I've instead moved the fusing to the long-branch pass, which is also
responsible for the opposite transformation: splitting out-of-range
compares and branches into separate compares and long branches.

I've added a test for the AnalyzeBranch problem.  A test for the
predication problem is included in the next patch, which fixes a bug
in the choice of CC mask.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187494 91177308-0d34-0410-b5e6-96231b3b80d8
2013-07-31 12:11:07 +00:00
..
Analysis Add newlines at end of test files, no functionality change 2013-07-13 22:00:58 +00:00
Assembler Debug Info: enable verifier for testing cases. 2013-07-29 20:18:19 +00:00
Bindings/Ocaml
Bitcode Make .bc en/decoding of AttrKind stable 2013-07-26 04:16:55 +00:00
BugPoint
CodeGen [SystemZ] Move compare-and-branch generation even later 2013-07-31 12:11:07 +00:00
DebugInfo Move file to X86 and add a triple to fix darwin bots for now. 2013-07-30 00:20:06 +00:00
ExecutionEngine [mips] Remove XFAIL from test-ptr-reloc-remote.ll 2013-07-24 17:14:05 +00:00
Feature
FileCheck
Instrumentation Debug Info: update testing cases to pass verifier. 2013-07-29 18:12:58 +00:00
Integer
JitListener Debug Info: update testing cases to pass verifier. 2013-07-29 18:12:58 +00:00
Linker Debug Info Verifier: enable verification of DICompileUnit. 2013-07-26 20:04:30 +00:00
MC [SystemZ] Add RISBLG and RISBHG instruction definitions 2013-07-31 11:17:35 +00:00
Object Add support for the 's' operation to llvm-ar. 2013-07-29 12:40:31 +00:00
Other Use pipefail when available. 2013-07-26 22:32:58 +00:00
TableGen Fix a bug in TableGen where the intrinsic function name recognizer could mis-identify names if one was a prefix substring of the other 2013-07-25 12:32:00 +00:00
tools Remove the mblaze backend from llvm. 2013-07-25 18:55:05 +00:00
Transforms Preserve fast-math flags when folding (fsub x, (fneg y)) to (fadd x, y). 2013-07-30 23:53:17 +00:00
Unit
Verifier Fix typo in test. 2013-07-22 21:10:42 +00:00
YAMLParser
CMakeLists.txt
lit.cfg
lit.site.cfg.in
Makefile
Makefile.tests Remove dead code from the makefile build system. 2013-07-25 20:25:31 +00:00
TestRunner.sh