[llvm-commits] [llvm] r122362 - /llvm/trunk/lib/Transforms/Scalar/GVN.cpp
Benjamin Kramer
benny.kra at googlemail.com
Tue Dec 21 13:30:19 PST 2010
Author: d0k
Date: Tue Dec 21 15:30:19 2010
New Revision: 122362
URL: http://llvm.org/viewvc/llvm-project?rev=122362&view=rev
Log:
GVN's Expression is not POD-like (it contains a SmallVector). Simplify code while at it.
Modified:
llvm/trunk/lib/Transforms/Scalar/GVN.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/GVN.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/GVN.cpp?rev=122362&r1=122361&r2=122362&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/GVN.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/GVN.cpp Tue Dec 21 15:30:19 2010
@@ -127,16 +127,9 @@
return false;
else if (function != other.function)
return false;
- else {
- if (varargs.size() != other.varargs.size())
- return false;
-
- for (size_t i = 0; i < varargs.size(); ++i)
- if (varargs[i] != other.varargs[i])
- return false;
-
- return true;
- }
+ else if (varargs != other.varargs)
+ return false;
+ return true;
}
/*bool operator!=(const Expression &other) const {
@@ -214,9 +207,6 @@
return LHS == RHS;
}
};
-
-template <>
-struct isPodLike<Expression> { static const bool value = true; };
}
More information about the llvm-commits
mailing list