GVN: use a static array instead of regenerating it each time. NFC.

llvm-svn: 242202
This commit is contained in:
Tim Northover 2015-07-14 21:14:58 +00:00
parent d9767a368f
commit 586b741959
1 changed files with 1 additions and 1 deletions

View File

@ -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,