mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-30 08:44:48 +00:00
remove some confused code that dates from when we had
"multiple return values" but not "first class aggregates" llvm-svn: 85791
This commit is contained in:
parent
c670f866ce
commit
23f5603692
@ -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…
x
Reference in New Issue
Block a user