diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2008-03-12 07:02:50 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2008-03-12 07:02:50 +0000 |
| commit | a15896ec75ccbfbd12600d9cd16dc42c4c39a8ac (patch) | |
| tree | 653f2c86265e5157f851d3854a28ccb7d5ada8f8 /lib/Transforms | |
| parent | f7093fd0d3bd4f372c06b1c4f5b7852c13a105ae (diff) | |
| download | external_llvm-a15896ec75ccbfbd12600d9cd16dc42c4c39a8ac.zip external_llvm-a15896ec75ccbfbd12600d9cd16dc42c4c39a8ac.tar.gz external_llvm-a15896ec75ccbfbd12600d9cd16dc42c4c39a8ac.tar.bz2 | |
Clean up my own mess.
X86 lowering normalize vector 0 to v4i32. However DAGCombine can fold (sub x, x) -> 0 after legalization. It can create a zero vector of a type that's not expected (e.g. v8i16). We don't want to disable the optimization since leaving a (sub x, x) is really bad. Add isel patterns for other types of vector 0 to ensure correctness. It's highly unlikely to happen other than in bugpoint reduced test cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48279 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
0 files changed, 0 insertions, 0 deletions
