Move the target constant divide optimization up into the dag combiner, so
authorNate Begeman <natebegeman@mac.com>
Thu, 20 Oct 2005 02:15:44 +0000 (02:15 +0000)
committerNate Begeman <natebegeman@mac.com>
Thu, 20 Oct 2005 02:15:44 +0000 (02:15 +0000)
commit6957523b9ddc6e85aede47a107502043fd1a3b2d
treeaef758527f57a29e7fb732e424b7c0418b428a87
parentd32d4a93f6aa524116e7043a1d4059febab0de9b
Move the target constant divide optimization up into the dag combiner, so
that the nodes can be folded with other nodes, and we can not duplicate
code in every backend.  Alpha will probably want this too.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23835 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCISelPattern.cpp