mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
remove some confused code that dates from when we had
"multiple return values" but not "first class aggregates" git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85791 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
09275299e2
commit
574fa9e83c
@ -661,16 +661,8 @@ void SCCPSolver::visitReturnInst(ReturnInst &I) {
|
||||
}
|
||||
|
||||
// Handle functions that return multiple values.
|
||||
if (0 && !TrackedMultipleRetVals.empty() && I.getNumOperands() > 1) {
|
||||
for (unsigned i = 0, e = I.getNumOperands(); i != e; ++i) {
|
||||
DenseMap<std::pair<Function*, unsigned>, LatticeVal>::iterator
|
||||
It = TrackedMultipleRetVals.find(std::make_pair(F, i));
|
||||
if (It == TrackedMultipleRetVals.end()) break;
|
||||
mergeInValue(It->second, F, getValueState(I.getOperand(i)));
|
||||
}
|
||||
} else if (!TrackedMultipleRetVals.empty() &&
|
||||
/*I.getNumOperands() == 1 &&*/
|
||||
isa<StructType>(I.getOperand(0)->getType())) {
|
||||
if (!TrackedMultipleRetVals.empty() &&
|
||||
isa<StructType>(I.getOperand(0)->getType())) {
|
||||
for (unsigned i = 0, e = I.getOperand(0)->getType()->getNumContainedTypes();
|
||||
i != e; ++i) {
|
||||
DenseMap<std::pair<Function*, unsigned>, LatticeVal>::iterator
|
||||
|
Loading…
Reference in New Issue
Block a user