diff options
author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2014-03-22 01:47:22 +0000 |
---|---|---|
committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2014-03-22 01:47:22 +0000 |
commit | d47cb57ab88956197c266df3353347eb31790781 (patch) | |
tree | b09d18ac4d85405c17bbc2ab48eede93f230124a /test/Transforms/ConstantHoisting | |
parent | 4696def45d683f1b1ebed8d85688f4c31fce6258 (diff) | |
download | llvm-d47cb57ab88956197c266df3353347eb31790781.tar.gz llvm-d47cb57ab88956197c266df3353347eb31790781.tar.bz2 llvm-d47cb57ab88956197c266df3353347eb31790781.tar.xz |
[DAG] Fix an assertion failure caused by an invalid cast in method 'BuildVectorSDNode::isConstantSplat'
This patch renames method 'isConstantSplat' as 'getConstantSplatValue'
(mainly for consistency reasons), and rewrites its logic to ensure
that we always perform a legal 'cast<ConstantSDNode>'.
Added test shift-combine-crash.ll to verify that DAGCombiner no longer crashes with an assertion failure in the attempt to simplify a vector shift by a vector of all undef counts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204536 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/ConstantHoisting')
0 files changed, 0 insertions, 0 deletions