llvm-6502/lib/Transforms/InstCombine
Jingyue Wu c77dec905a InstCombine: Canonicalize addrspacecast between different element types
addrspacecast X addrspace(M)* to Y addrspace(N)*

-->

bitcast X addrspace(M)* to Y addrspace(M)*
addrspacecast Y addrspace(M)* to Y addrspace(N)*

Updat all affected tests and add several new tests in addrspacecast.ll.

This patch is based on http://reviews.llvm.org/D2186 (authored by Matt
Arsenault) with fixes and more tests.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210375 91177308-0d34-0410-b5e6-96231b3b80d8
2014-06-06 21:52:55 +00:00
..
CMakeLists.txt
InstCombine.h Added select flavour for ABS and NEG(ABS) 2014-06-06 06:54:45 +00:00
InstCombineAddSub.cpp InstCombine: Improvement to check if signed addition overflows. 2014-06-04 15:39:14 +00:00
InstCombineAndOrXor.cpp Reorder shuffle and binary operation. 2014-05-11 08:46:12 +00:00
InstCombineCalls.cpp [PPC64LE] Correct vperm -> shuffle transform for little endian 2014-06-05 19:46:04 +00:00
InstCombineCasts.cpp InstCombine: Canonicalize addrspacecast between different element types 2014-06-06 21:52:55 +00:00
InstCombineCompares.cpp Added support to optimize comparisons with "lshr exact" of a constant. 2014-06-02 19:19:04 +00:00
InstCombineLoadStoreAlloca.cpp [C++] Use 'nullptr'. Transforms edition. 2014-04-25 05:29:35 +00:00
InstCombineMulDivRem.cpp Optimize integral reciprocal (udiv 1, x and sdiv 1, x) to not use division. This fires exactly once in a clang bootstrap, but covers a few different results from http://www.cs.utah.edu/~regehr/souper/ 2014-05-14 03:03:05 +00:00
InstCombinePHI.cpp [C++] Use 'nullptr'. Transforms edition. 2014-04-25 05:29:35 +00:00
InstCombineSelect.cpp Added select flavour for ABS and NEG(ABS) 2014-06-06 06:54:45 +00:00
InstCombineShifts.cpp Reorder shuffle and binary operation. 2014-05-11 08:46:12 +00:00
InstCombineSimplifyDemanded.cpp Rename ComputeMaskedBits to computeKnownBits. "Masked" has been 2014-05-14 21:14:37 +00:00
InstCombineVectorOps.cpp Fix type of shuffle resulted from shuffle merge. 2014-05-13 06:07:21 +00:00
InstCombineWorklist.h [C++] Use 'nullptr'. 2014-04-28 04:05:08 +00:00
InstructionCombining.cpp Add a Constant version of stripPointerCasts. 2014-06-04 19:01:48 +00:00
LLVMBuild.txt
Makefile