llvm-6502/lib
Chandler Carruth 2c107a8020 Rephrase the speculating scan of the conditional BB to be phrased in
terms of cost rather than hoisting a single instruction.

This does *not* change the cost model! We still set the cost threshold
at 1 here, it's just that we track it by accumulating cost rather than
by storing an instruction.

The primary advantage is that we no longer leave no-op intrinsics in the
basic block. For example, this will now move both debug info intrinsics
and a single instruction, instead of only moving the instruction and
leaving a basic block with nothing bug debug info intrinsics in it, and
those intrinsics now no longer ordered correctly with the hoisted value.

Instead, we now splice the entire conditional basic block's instruction
sequence.

This also places the code for checking the safety of hoisting next to
the code computing the cost.

Currently, the only observable side-effect of this change is that debug
info intrinsics are no longer abandoned. I'm not sure how to craft
a test case for this, and my real goal was the refactoring, but I'll
talk to Dave or Eric about how to add a test case for this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173339 91177308-0d34-0410-b5e6-96231b3b80d8
2013-01-24 11:52:58 +00:00
..
Analysis ConstantFolding: Tweak r173289, it should evaluate in the intptr type, not the index type. 2013-01-23 21:21:24 +00:00
Archive Move all of the header files which are involved in modelling the LLVM IR 2013-01-02 11:36:10 +00:00
AsmParser Add the IR attribute 'sspstrong'. 2013-01-23 06:41:41 +00:00
Bitcode Make APFloat constructor require explicit semantics. 2013-01-22 09:46:31 +00:00
CodeGen MachineScheduler: enable biasCriticalPath for all DAGs. 2013-01-24 02:09:57 +00:00
DebugInfo Fix the assembly and dissassembly of DW_FORM_sec_offset. Found this by 2013-01-17 03:00:04 +00:00
ExecutionEngine Make APFloat constructor require explicit semantics. 2013-01-22 09:46:31 +00:00
IR Add a profile for uniquifying the AttributeSet with the AttributeSetNodes. 2013-01-24 01:01:34 +00:00
Linker [Linker] Kill Linker::LoadObject which is dead, and drop the BitReader dependency again. 2013-01-18 19:37:11 +00:00
MC Clean up assignment of CalleeSaveStackSlotSize: get rid of the default and explicitly set this in every target that needs to change it from the default. 2013-01-23 16:22:04 +00:00
Object [MC/Mach-O] Add support for linker options in Mach-O files. 2013-01-18 01:26:07 +00:00
Option Resort the #include lines in include/... and lib/... with the 2013-01-02 10:22:59 +00:00
Support Initial patch for x32 ABI support. 2013-01-22 18:02:49 +00:00
TableGen TableGen: Keep track of superclass reference ranges. 2013-01-10 18:50:11 +00:00
Target MipsISelLowering.cpp: Fill unreachable paths to fix warnings. [-Wsometimes-uninitialized] 2013-01-24 06:08:06 +00:00
Transforms Rephrase the speculating scan of the conditional BB to be phrased in 2013-01-24 11:52:58 +00:00
CMakeLists.txt Rename VMCore directory to IR. 2013-01-02 09:10:48 +00:00
LLVMBuild.txt Rename VMCore directory to IR. 2013-01-02 09:10:48 +00:00
Makefile Rename VMCore directory to IR. 2013-01-02 09:10:48 +00:00