diff options
author | Hal Finkel <hfinkel@anl.gov> | 2013-07-09 17:02:45 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2013-07-09 17:02:45 +0000 |
commit | bd6f1f6896275e04ce46c9ef82fd96e2e6c125dd (patch) | |
tree | 50d0eb0284aa2922c94c32e88017656e7d9171eb /include | |
parent | 7a34599db017a5486cf7cd11eb124984acec8286 (diff) | |
download | llvm-bd6f1f6896275e04ce46c9ef82fd96e2e6c125dd.tar.gz llvm-bd6f1f6896275e04ce46c9ef82fd96e2e6c125dd.tar.bz2 llvm-bd6f1f6896275e04ce46c9ef82fd96e2e6c125dd.tar.xz |
DAGCombine tryFoldToZero cannot create illegal types after type legalization
When folding sub x, x (and other similar constructs), where x is a vector, the
result is a vector of zeros. After type legalization, make sure that the input
zero elements have a legal type. This type may be larger than the result's
vector element type.
This was another bug found by llvm-stress.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185949 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions