[llvm-commits] [llvm] r152027 - /llvm/trunk/lib/Transforms/Scalar/GVN.cpp
Duncan Sands
baldrick at free.fr
Mon Mar 5 04:23:01 PST 2012
Author: baldrick
Date: Mon Mar 5 06:23:00 2012
New Revision: 152027
URL: http://llvm.org/viewvc/llvm-project?rev=152027&view=rev
Log:
This is not a common case, in fact it never happens!
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=152027&r1=152026&r2=152027&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/GVN.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/GVN.cpp Mon Mar 5 06:23:00 2012
@@ -87,10 +87,6 @@
}
friend hash_code hash_value(const Expression &Value) {
- // Optimize for the common case.
- if (Value.varargs.empty())
- return hash_combine(Value.opcode, Value.type);
-
return hash_combine(Value.opcode, Value.type,
hash_combine_range(Value.varargs.begin(),
Value.varargs.end()));
More information about the llvm-commits
mailing list