summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
diff options
context:
space:
mode:
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2014-03-22 01:47:22 +0000
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2014-03-22 01:47:22 +0000
commit5b0aacf1c79eedafe9e735e459f67e831bc8cd68 (patch)
treecb1d412ccd8d38b57ccb36ef20183756fd7fdc1a /llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
parent0ac1b8fd076f5ca936f8424b673717fa1c143a83 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud