[llvm-commits] [llvm] r85791 - /llvm/trunk/lib/Transforms/Scalar/SCCP.cpp
Chris Lattner
sabre at nondot.org
Sun Nov 1 22:17:08 PST 2009
Author: lattner
Date: Mon Nov 2 00:17:06 2009
New Revision: 85791
URL: http://llvm.org/viewvc/llvm-project?rev=85791&view=rev
Log:
remove some confused code that dates from when we had
"multiple return values" but not "first class aggregates"
Modified:
llvm/trunk/lib/Transforms/Scalar/SCCP.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/SCCP.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/SCCP.cpp?rev=85791&r1=85790&r2=85791&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/SCCP.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/SCCP.cpp Mon Nov 2 00:17:06 2009
@@ -661,16 +661,8 @@
}
// 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
More information about the llvm-commits
mailing list