commit | 69778b6a71151ab152c3daa8ffc245ef11f559a3 | [log] [tgz] |
---|---|---|
author | Sanjay Patel <spatel@rotateright.com> | Thu Nov 01 15:41:12 2018 +0000 |
committer | Sanjay Patel <spatel@rotateright.com> | Thu Nov 01 15:41:12 2018 +0000 |
tree | e2425b22798cbc5f4af3d2beb02aca48adf059a4 | |
parent | 14550f9fb5e160399f16b64e45712e5a902e316c [diff] |
[DAGCombiner] make sure we have a whole-number extract before trying to narrow a vector op (PR39511) The test causes a crash because we were trying to extract v4f32 to v3f32, and the narrowing factor was then 4/3 = 1 producing a bogus narrow type. This should fix: https://bugs.llvm.org/show_bug.cgi?id=39511 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@345842 91177308-0d34-0410-b5e6-96231b3b80d8