Fix PR9579: when simplifying a compare to "true" or "false", and it was
authorDuncan Sands <baldrick@free.fr>
Mon, 2 May 2011 18:51:41 +0000 (18:51 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 2 May 2011 18:51:41 +0000 (18:51 +0000)
commit448a6d3cc23f2a249778bb341ae26589568efdf8
treee48b48a048f262937664ee6eef0d1c53b97bda7e
parent00676a6df1116f47a015de589f911d2b5b7f4117
Fix PR9579: when simplifying a compare to "true" or "false", and it was
a vector compare, generate a vector result rather than i1 (and crashing).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130706 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstCombine/2011-05-02-VectorBoolean.ll [new file with mode: 0644]