diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2014-12-19 17:12:35 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2014-12-19 17:12:35 +0000 |
commit | f6cf8ad4e5ad260e12153156fb7e90b8c29604ea (patch) | |
tree | cf4ac7099205bbd3f4e300fd09c95cd96e3457ab /llvm/lib/Transforms/Vectorize/BBVectorize.cpp | |
parent | b811030b47908fcf083be6ef6a4ad90b3e5086ca (diff) | |
download | bcm5719-llvm-f6cf8ad4e5ad260e12153156fb7e90b8c29604ea.tar.gz bcm5719-llvm-f6cf8ad4e5ad260e12153156fb7e90b8c29604ea.zip |
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
llvm-svn: 224588
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/BBVectorize.cpp')
0 files changed, 0 insertions, 0 deletions