llvm-6502/lib
Tom Stellard 40e455d992 R600/SI: Custom lower SI_IF and SI_ELSE to avoid machine verifier errors
SI_IF and SI_ELSE are terminators which also produce a value.  For
these instructions ISel always inserts a COPY to move their value
to another basic block.  This COPY ends up between SI_(IF|ELSE)
and the S_BRANCH* instruction at the end of the block.

This breaks MachineBasicBlock::getFirstTerminator() and also the
machine verifier which assumes that terminators are grouped together at
the end of blocks.

To solve this we coalesce the copy away right after ISel to make sure
there are no instructions in between terminators at the end of blocks.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207591 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-29 23:12:53 +00:00
..
Analysis blockfreq: Defer to BranchProbability::scale() 2014-04-29 16:20:05 +00:00
AsmParser Add 'musttail' marker to call instructions 2014-04-24 20:14:34 +00:00
Bitcode [C++] Use 'nullptr'. 2014-04-28 04:05:08 +00:00
CodeGen Tidy up whitespace. 2014-04-29 22:41:50 +00:00
DebugInfo [DWARF parser] Cleanup code in DWARFDebugLine. 2014-04-29 21:28:13 +00:00
ExecutionEngine Fix MSVC build broken by r207580 2014-04-29 22:04:55 +00:00
IR [PM] Add pass run listeners to the pass manager. 2014-04-28 18:19:25 +00:00
IRReader [C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr. 2014-04-15 06:32:26 +00:00
LineEditor
Linker [C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr. 2014-04-15 06:32:26 +00:00
LTO Add an -mattr option to the gold plugin to support subtarget features in LTO 2014-04-25 21:46:51 +00:00
MC Parse and create GOT_PREL relocations. 2014-04-29 13:42:02 +00:00
Object [yaml2obj][ELF] Remove unnecessary space between namespace name and 2014-04-23 17:30:29 +00:00
Option Protect the ArgList dtor 2014-04-20 23:59:00 +00:00
ProfileData [C++11] Add 'override' keywords and remove 'virtual'. Additionally add 'final' and leave 'virtual' on some methods that are marked virtual without overriding anything and have no obvious overrides themselves. 2014-04-29 07:58:41 +00:00
Support BranchProb: Simplify printing code 2014-04-29 17:07:42 +00:00
TableGen [C++] Use 'nullptr'. 2014-04-28 04:05:08 +00:00
Target R600/SI: Custom lower SI_IF and SI_ELSE to avoid machine verifier errors 2014-04-29 23:12:53 +00:00
Transforms Tidy up. 2014-04-29 22:41:58 +00:00
CMakeLists.txt ProfileData: Introduce the InstrProfReader interface and a text reader 2014-03-21 17:24:48 +00:00
LLVMBuild.txt ProfileData: Introduce the InstrProfReader interface and a text reader 2014-03-21 17:24:48 +00:00
Makefile ProfileData: Introduce the InstrProfReader interface and a text reader 2014-03-21 17:24:48 +00:00