llvm-6502/lib
Shuxin Yang 0a46bf13a3 This change is to fix rdar://12571717 which is about assertion in Reassociate pass.
The assertion is trigged when the Reassociater tries to transform expression
     ... + 2 * n * 3 + 2 * m + ...
  into:
     ... + 2 * (n*3 + m).

In the process of the transformation, a helper routine folds the constant 2*3 into 6,
confusing optimizer which is trying the to eliminate the common factor 2, and cannot
find 2 any more. 

Review is pending. But I'd like commit first in order to help those who are waiting 
for this fix. 


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167740 91177308-0d34-0410-b5e6-96231b3b80d8
2012-11-12 19:34:11 +00:00
..
Analysis llvm/ConstantFolding.cpp: Make ReadDataFromGlobal() and FoldReinterpretLoadFromConstPtr() Big-endian-aware. 2012-11-08 20:34:25 +00:00
Archive Mark checkSignature const, and in turn stop casting away const from 2012-09-05 22:09:23 +00:00
AsmParser Change ForceSizeOpt attribute into MinSize attribute 2012-10-30 16:32:52 +00:00
Bitcode Move the Attributes::Builder outside of the Attributes class and into its own class named AttrBuilder. No functionality change. 2012-10-15 20:35:56 +00:00
CodeGen misched: Infrastructure for weak DAG edges. 2012-11-12 19:28:57 +00:00
DebugInfo Fixup for r167558: Store raw pointer (instead of reference) to RelocMap in DIContext. This is needed to prevent crashes because of dangling reference if the clients don't provide RelocMap to DIContext constructor. 2012-11-12 14:25:36 +00:00
ExecutionEngine Fix build error from previous commit. 2012-11-06 19:06:46 +00:00
Linker Move the "findUsedStructTypes" functionality outside of the Module class. 2012-08-03 00:30:35 +00:00
MC Add ARM TARGET2 relocation. The testcase will follow with actualy use-case. 2012-11-09 20:20:12 +00:00
Object Add interface for querying object files for symbol values. 2012-10-29 10:47:00 +00:00
Support Drop the limitation to IEEE floating point types from the fdiv of pow2 -> fmul transform. 2012-11-08 13:58:10 +00:00
TableGen Remove exception handling usage from tblgen. 2012-10-25 20:33:17 +00:00
Target Make TOC order deterministic by using MapVector instead of DenseMap. 2012-11-12 19:13:24 +00:00
Transforms This change is to fix rdar://12571717 which is about assertion in Reassociate pass. 2012-11-12 19:34:11 +00:00
VMCore Include all the fields so we can correctly emit DW_TAG_structure_type for C++ structs. 2012-11-02 23:33:23 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile