[llvm] r294850 - NewGVN: Add missing initialization of NumFuncArgs lost due to bad merge.
Daniel Berlin via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 11 07:13:50 PST 2017
Author: dannyb
Date: Sat Feb 11 09:13:49 2017
New Revision: 294850
URL: http://llvm.org/viewvc/llvm-project?rev=294850&view=rev
Log:
NewGVN: Add missing initialization of NumFuncArgs lost due to bad merge.
Modified:
llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp?rev=294850&r1=294849&r2=294850&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp Sat Feb 11 09:13:49 2017
@@ -1710,6 +1710,7 @@ bool NewGVN::runGVN(Function &F, Dominat
TargetLibraryInfo *_TLI, AliasAnalysis *_AA,
MemorySSA *_MSSA) {
bool Changed = false;
+ NumFuncArgs = F.arg_size();
DT = _DT;
AC = _AC;
TLI = _TLI;
More information about the llvm-commits
mailing list