mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Change one ReplaceAllUsesWith method to take an array of operands to replace
instead of a vector of operands. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29616 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2441,11 +2441,9 @@ void SelectionDAG::ReplaceAllUsesWith(SDNode *From, SDNode *To,
|
||||
/// This version can replace From with any result values. To must match the
|
||||
/// number and types of values returned by From.
|
||||
void SelectionDAG::ReplaceAllUsesWith(SDNode *From,
|
||||
const std::vector<SDOperand> &To,
|
||||
const SDOperand *To,
|
||||
std::vector<SDNode*> *Deleted) {
|
||||
assert(From->getNumValues() == To.size() &&
|
||||
"Incorrect number of values to replace with!");
|
||||
if (To.size() == 1 && To[0].Val->getNumValues() == 1) {
|
||||
if (From->getNumValues() == 1 && To[0].Val->getNumValues() == 1) {
|
||||
// Degenerate case handled above.
|
||||
ReplaceAllUsesWith(SDOperand(From, 0), To[0], Deleted);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user