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 | 5b0aacf1c79eedafe9e735e459f67e831bc8cd68 (patch) | |
| tree | cb1d412ccd8d38b57ccb36ef20183756fd7fdc1a /llvm/lib/Transforms/Scalar/ConstantHoisting.cpp | |
| parent | 0ac1b8fd076f5ca936f8424b673717fa1c143a83 (diff) | |
| download | bcm5719-llvm-5b0aacf1c79eedafe9e735e459f67e831bc8cd68.tar.gz bcm5719-llvm-5b0aacf1c79eedafe9e735e459f67e831bc8cd68.zip | |
[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.
llvm-svn: 204536
Diffstat (limited to 'llvm/lib/Transforms/Scalar/ConstantHoisting.cpp')
0 files changed, 0 insertions, 0 deletions

