Some SELECT_CC cleanups:
authorNate Begeman <natebegeman@mac.com>
Thu, 11 Aug 2005 01:12:20 +0000 (01:12 +0000)
committerNate Begeman <natebegeman@mac.com>
Thu, 11 Aug 2005 01:12:20 +0000 (01:12 +0000)
commite5d63829fd62d815a330c21ea316e6b4cf943562
treeb271a6d39883d5fb4f92346715a1db41eaf4d622
parentc24d484b7813524b9d87373992cd3ba8831dae51
Some SELECT_CC cleanups:
1. move assertions for node creation to getNode()
2. legalize the values returned in ExpandOp immediately
3. Move select_cc optimizations from SELECT's getNode() to SELECT_CC's,
   allowing them to be cleaned up significantly.

This paves the way to pick up additional optimizations on SELECT_CC, such
as sum-of-absolute-differences.

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