llvm-6502/lib/Transforms
Bruno Cardoso Lopes 06833ca7c1 Reapply: [InstCombine] Fix visitSwitchInst to use right operand types for sub cstexpr
The visitSwitchInst generates SUB constant expressions to recompute the
switch condition. When truncating the condition to a smaller type, SUB
expressions should use the previous type (before trunc) for both
operands. Also, fix code to also return the modified switch when only
the truncation is performed.

This fixes an assertion crash.

Differential Revision: http://reviews.llvm.org/D6644

rdar://problem/19191835

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224588 91177308-0d34-0410-b5e6-96231b3b80d8
2014-12-19 17:12:35 +00:00
..
Hello
InstCombine Reapply: [InstCombine] Fix visitSwitchInst to use right operand types for sub cstexpr 2014-12-19 17:12:35 +00:00
Instrumentation [Msan] Generalize instrumentation code to support FreeBSD mapping 2014-12-18 12:12:59 +00:00
IPO Sink store based on alias analysis 2014-12-15 14:09:53 +00:00
ObjCARC IR: Split Metadata from Value 2014-12-09 18:38:53 +00:00
Scalar [SROA] Cleanup - remove the use of std::mem_fun_ref nonsense and use 2014-12-18 05:19:47 +00:00
Utils Rename MapValue(Metadata*) to MapMetadata() 2014-12-19 06:06:18 +00:00
Vectorize [LoopVectorize] Remove redundant assignment. 2014-12-19 17:02:31 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile