From 586b7419597b0bfe385eaa59b7f54d6e27dc7a6c Mon Sep 17 00:00:00 2001 From: Tim Northover Date: Tue, 14 Jul 2015 21:14:58 +0000 Subject: [PATCH] GVN: use a static array instead of regenerating it each time. NFC. llvm-svn: 242202 --- llvm/lib/Transforms/Scalar/GVN.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Scalar/GVN.cpp b/llvm/lib/Transforms/Scalar/GVN.cpp index b1a0db3..d1eba6e7 100644 --- a/llvm/lib/Transforms/Scalar/GVN.cpp +++ b/llvm/lib/Transforms/Scalar/GVN.cpp @@ -1795,7 +1795,7 @@ static void patchReplacementInstruction(Instruction *I, Value *Repl) { // In general, GVN unifies expressions over different control-flow // regions, and so we need a conservative combination of the noalias // scopes. - unsigned KnownIDs[] = { + static const unsigned KnownIDs[] = { LLVMContext::MD_tbaa, LLVMContext::MD_alias_scope, LLVMContext::MD_noalias, -- 2.7.4