Teach the SelectionDAG how to transform select_cc eq, X, 0, 1, 0 into
authorNate Begeman <natebegeman@mac.com>
Tue, 23 Aug 2005 05:41:12 +0000 (05:41 +0000)
committerNate Begeman <natebegeman@mac.com>
Tue, 23 Aug 2005 05:41:12 +0000 (05:41 +0000)
commit7042f15bded917ba68e5e66be873ad4d06f9ca2d
tree9b4c376142b0d084b236a7cb2d0c1457c39ae2cb
parentb942a3dd5f9318b2c57f137d2991440c2f0262ad
Teach the SelectionDAG how to transform select_cc eq, X, 0, 1, 0 into
either seteq X, 0 or srl (ctlz X), size(X-1), depending on what's legal
for the target.

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