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 | 6c29bd9088bddb60baa29955a2c202922d3a6e3f (patch) | |
tree | f1cc250827c608a3f143170ffa3ac1fcfb0b2bc4 /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | |
parent | d83ef848bd859cdf8f5bb380cbe808746e534121 (diff) | |
download | bcm5719-llvm-6c29bd9088bddb60baa29955a2c202922d3a6e3f.tar.gz bcm5719-llvm-6c29bd9088bddb60baa29955a2c202922d3a6e3f.zip |
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.
llvm-svn: 185949
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
0 files changed, 0 insertions, 0 deletions