Fix PR3393, which amounts to a bug in the expensive
authorDuncan Sands <baldrick@free.fr>
Mon, 26 Jan 2009 21:54:18 +0000 (21:54 +0000)
committerDuncan Sands <baldrick@free.fr>
Mon, 26 Jan 2009 21:54:18 +0000 (21:54 +0000)
commit5bb11b89ddbc0f47eee9743b93df5aa872750d13
tree1bc89471fc75a3a76e2d4f5bfe696efd47678ec0
parent9c27886dd5d504f2b03c6fcb57aba23e5e44c4fa
Fix PR3393, which amounts to a bug in the expensive
checking logic.  Rather than make the checking more
complicated, I've tweaked some logic to make things
conform to how the checking thought things ought to
be, since this results in a simpler "mental model".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63048 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
lib/CodeGen/SelectionDAG/LegalizeTypes.h
test/CodeGen/X86/2009-01-26-WrongCheck.ll [new file with mode: 0644]