llvm-6502/lib
Chandler Carruth 681add7a63 Switch the constant expression speculation cost evaluation away from
a cost fuction that seems both a bit ad-hoc and also poorly suited to
evaluating constant expressions.

Notably, it is missing any support for trivial expressions such as
'inttoptr'. I could fix this routine, but it isn't clear to me all of
the constraints its other users are operating under.

The core protection that seems relevant here is avoiding the formation
of a select instruction wich a further chain of select operations in
a constant expression operand. Just explicitly encode that constraint.

Also, update the comments and organization here to make it clear where
this needs to go -- this should be driven off of real cost measurements
which take into account the number of constants expressions and the
depth of the constant expression tree.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173340 91177308-0d34-0410-b5e6-96231b3b80d8
2013-01-24 11:53:01 +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 Switch the constant expression speculation cost evaluation away from 2013-01-24 11:53:01 +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