diff options
author | Richard Osborne <richard@xmos.com> | 2011-11-07 17:09:05 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2011-11-07 17:09:05 +0000 |
commit | 561fac4d4e2bfcadeaf2a5bc60a7cde31e4bcedf (patch) | |
tree | d0144bc337bc8748625d9cfa933ac22493740f55 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | f5fbe436bc8ab1f3373deda47300fa8c080a2f9f (diff) | |
download | bcm5719-llvm-561fac4d4e2bfcadeaf2a5bc60a7cde31e4bcedf.tar.gz bcm5719-llvm-561fac4d4e2bfcadeaf2a5bc60a7cde31e4bcedf.zip |
Don't introduce custom nodes after legalization in TargetLowering::BuildSDIV()
and TargetLowering::BuildUDIV(). Fixes PR11283
llvm-svn: 143964
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 0a142bdbf58..064cee2994f 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -7822,7 +7822,7 @@ SDValue DAGCombiner::SimplifySetCC(EVT VT, SDValue N0, /// <http://the.wall.riscom.net/books/proc/ppc/cwg/code2.html> SDValue DAGCombiner::BuildSDIV(SDNode *N) { std::vector<SDNode*> Built; - SDValue S = TLI.BuildSDIV(N, DAG, &Built); + SDValue S = TLI.BuildSDIV(N, DAG, LegalOperations, &Built); for (std::vector<SDNode*>::iterator ii = Built.begin(), ee = Built.end(); ii != ee; ++ii) @@ -7836,7 +7836,7 @@ SDValue DAGCombiner::BuildSDIV(SDNode *N) { /// <http://the.wall.riscom.net/books/proc/ppc/cwg/code2.html> SDValue DAGCombiner::BuildUDIV(SDNode *N) { std::vector<SDNode*> Built; - SDValue S = TLI.BuildUDIV(N, DAG, &Built); + SDValue S = TLI.BuildUDIV(N, DAG, LegalOperations, &Built); for (std::vector<SDNode*>::iterator ii = Built.begin(), ee = Built.end(); ii != ee; ++ii) |