commit | de866c328a811e06390b7f01267187ffaa0eb741 | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@intel.com> | Thu Feb 22 07:05:27 2018 +0000 |
committer | Craig Topper <craig.topper@intel.com> | Thu Feb 22 07:05:27 2018 +0000 |
tree | 839324a71ac7381200eb9bffe1a5821fe3614f1e | |
parent | 77fc8fce7e1590a980085ba77768ab8ce2d10426 [diff] |
[DAGCombiner] Add two calls to isVector before making calls to getVectorElementType/getVectorNumElements to avoid an assert. We looked through a BITCAST, but the bitcast might be a from a scalar type rather than a vector. I don't have a test case. I stumbled onto it while prototyping another change that isn't ready yet. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@325750 91177308-0d34-0410-b5e6-96231b3b80d8