llvm-6502/lib/Transforms/InstCombine
Bruno Cardoso Lopes cba407d019 [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. 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@224574 91177308-0d34-0410-b5e6-96231b3b80d8
2014-12-19 14:23:15 +00:00
..
CMakeLists.txt
InstCombine.h Strength reduce intrinsics with overflow into regular arithmetic operations if possible. 2014-12-17 07:29:19 +00:00
InstCombineAddSub.cpp fix formatting; NFC 2014-12-18 21:11:09 +00:00
InstCombineAndOrXor.cpp
InstCombineCalls.cpp Strength reduce intrinsics with overflow into regular arithmetic operations if possible. 2014-12-17 07:29:19 +00:00
InstCombineCasts.cpp More code format fix from r224133, NFC 2014-12-12 18:48:37 +00:00
InstCombineCompares.cpp
InstCombineLoadStoreAlloca.cpp
InstCombineMulDivRem.cpp
InstCombinePHI.cpp
InstCombineSelect.cpp
InstCombineShifts.cpp
InstCombineSimplifyDemanded.cpp
InstCombineVectorOps.cpp
InstCombineWorklist.h
InstructionCombining.cpp [InstCombine] Fix visitSwitchInst to use right operand types for sub cstexpr 2014-12-19 14:23:15 +00:00
LLVMBuild.txt
Makefile