Fold C ? 0 : 1 to ~C or zext(~C) or trunc(~C) depending the types.
authorEvan Cheng <evan.cheng@apple.com>
Sat, 18 Aug 2007 05:57:05 +0000 (05:57 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sat, 18 Aug 2007 05:57:05 +0000 (05:57 +0000)
commit571c4788d5d1527af39f9904e14983d9229c2443
tree198850c7980bf18a87ed8733510d75f45a21a4f7
parent9710536b44ec47a1121942df11416c063272245a
Fold C ? 0 : 1 to ~C or zext(~C) or trunc(~C) depending the types.

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