DAGCombiner: Fix crash in select(select) opt.
authorMatthias Braun <matze@braunis.de>
Mon, 13 Apr 2015 17:16:33 +0000 (17:16 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 13 Apr 2015 17:16:33 +0000 (17:16 +0000)
commit12a70396449f106867a1bab3772ad11b433ae50b
tree4c64e442677304694d4268ee23abcabd026be372
parent332adac427cadd5f047fe96af3783f1f5586327e
DAGCombiner: Fix crash in select(select) opt.

In case of different types used for the condition of the selects the
select(select) -> select(and) normalisation cannot be performed.

See also: http://reviews.llvm.org/D7622

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234763 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/Mips/dagcombine_crash.ll [new file with mode: 0644]