1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 20:12:56 +02: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:
Chris Lattner 2009-11-02 06:17:06 +00:00
parent c670f866ce
commit 23f5603692

View File

@ -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