fix infinite loop in instcombine in the presence of a (malformed) self-referencing...
authorNuno Lopes <nunoplopes@sapo.pt>
Fri, 27 Jul 2012 18:03:57 +0000 (18:03 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Fri, 27 Jul 2012 18:03:57 +0000 (18:03 +0000)
commit75564e35147dd6e36b864946298b6a35417bb9e6
tree7dcc5a04ba801ed7c9350851541a1e7b1b6d324b
parent2e319870f17a090e47540e2a821eac33c495bf59
fix infinite loop in instcombine in the presence of a (malformed) self-referencing select inst.
This can happen as long as the instruction is not reachable. Instcombine does generate these unreachable malformed selects when doing RAUW

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160874 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineSelect.cpp
test/Transforms/InstCombine/select-crash.ll