[CodeGen] Teach DAG combine to fold select_cc seteq X, 0, sizeof(X), ctlz_zero_undef...
authorCraig Topper <craig.topper@gmail.com>
Sun, 24 Apr 2016 04:38:32 +0000 (04:38 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 24 Apr 2016 04:38:32 +0000 (04:38 +0000)
commit36c133159a1cdce2dccd71ba088a02a0c12e4091
tree7937752ca19021eeb1eb8c8e12de18be7749556f
parentbeb77bd89fbb3661903ca5dbc39fee7454227536
[CodeGen] Teach DAG combine to fold select_cc seteq X, 0, sizeof(X), ctlz_zero_undef(X) -> ctlz(X). InstCombine already does this for IR and X86 pattern matches this during isel.

A follow up commit will remove the X86 patterns to allow this to be tested.

llvm-svn: 267325
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp