llvm-6502/lib
Meador Inge 8df7c39976 IR: Don't constant fold GEP bitcasts between different address spaces
PR15262 reported a bug where the following instruction:

  i8 getelementptr inbounds i8* bitcast ([4 x i8] addrspace(12)* @buf to i8*),
                                i32 2

was getting folded into:

  addrspace(12)* getelementptr inbounds ([4 x i8] addrspace(12)* @buf, i32 0,
                                        i32 2)

This caused instcombine to crash because the original instruction and
the folded instruction have different types.  The issue was fixed by
disallowing bitcasts between different address spaces to be folded away.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176156 91177308-0d34-0410-b5e6-96231b3b80d8
2013-02-27 02:26:42 +00:00
..
Analysis Constant fold vector bitcasts of halves similarly to how floats and doubles are folded. Test case included. 2013-02-26 22:51:07 +00:00
Archive Fix auto_ptr is deprecated warnings 2013-02-26 21:20:35 +00:00
AsmParser Unify clang/llvm attributes for asan/tsan/msan (LLVM part) 2013-02-26 06:58:09 +00:00
Bitcode
CodeGen SelectionDAG: If llvm.donothing has a landingpad, we should clear 2013-02-27 02:11:57 +00:00
DebugInfo Code cleanup: pass Offset by pointer to parseInstruction to more explicitly 2013-02-22 00:50:48 +00:00
ExecutionEngine
IR IR: Don't constant fold GEP bitcasts between different address spaces 2013-02-27 02:26:42 +00:00
Linker
MC AsmParser: More generic support for integer type suffices. 2013-02-26 20:17:10 +00:00
Object
Option
Support Add support for autodetection of ADM bdver2. 2013-02-26 22:41:01 +00:00
TableGen [TableGen] Fix ICE on MSVC 2012 Release builds. 2013-02-26 21:29:47 +00:00
Target Fix PR15332 (patch by Florian Zeitz). 2013-02-26 21:28:57 +00:00
Transforms Enhance integer division emulation support to handle types smaller than 32 bits, 2013-02-26 23:33:20 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile