OSDN Git Service

[DAGCombiner] Merge together duplicate checks for folding fold (select C, 1, X) ...
authorCraig Topper <craig.topper@gmail.com>
Tue, 10 Jan 2017 07:42:57 +0000 (07:42 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 10 Jan 2017 07:42:57 +0000 (07:42 +0000)
commit7b6c6fbcbbcd0ab113a0c6ce333eac0b378209cb
treecf16b761b28f0f7c2dff95adecd63d325694528e
parent19d53d692e780e29b5a008b62bc64f9d234fd59b
[DAGCombiner] Merge together duplicate checks for folding fold (select C, 1, X) -> (or C, X)  and  folding (select C, X, 0) -> (and C, X). Also be consistent about checking that both the condition and the result type are i1. NFC

I guess previously we just assumed if the result type was i1, then the condition type must also be i1?

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291548 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp