PR9218: SimplifyDemandedVectorElts can return a non-null value that is not
authorEli Friedman <eli.friedman@gmail.com>
Sat, 19 Feb 2011 22:42:40 +0000 (22:42 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sat, 19 Feb 2011 22:42:40 +0000 (22:42 +0000)
commit1347623aaf25b7fe6486479353fc87bd7541a5f7
treeb582246cc63d446a70dbc262e6c14b34d96805b2
parent86b115c78b6c50c7fedbeab80128b2dcbc3cfc57
PR9218: SimplifyDemandedVectorElts can return a non-null value that is not
the instruction passed in.  Make sure to account for this correctly, instead
of looping infinitely.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126058 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
test/Transforms/InstCombine/2011-02-16-InsertelementHang.ll [new file with mode: 0644]