OSDN Git Service

[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)
commitc0f92c94ab2c865d6d77d926bb6bf4f0a9ca2680
tree65e42b3fd27a8efa00b409e9566d9c394bb405db
parente5dc889a2bcc6cd1cb7c5a81fb85ca9132ea6cff
[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.

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