summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize/BBVectorize.cpp
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2014-12-19 17:12:35 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2014-12-19 17:12:35 +0000
commitf6cf8ad4e5ad260e12153156fb7e90b8c29604ea (patch)
treecf4ac7099205bbd3f4e300fd09c95cd96e3457ab /llvm/lib/Transforms/Vectorize/BBVectorize.cpp
parentb811030b47908fcf083be6ef6a4ad90b3e5086ca (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud