GVN: use a static array instead of regenerating it each time. NFC.
llvm-svn: 242202
This commit is contained in:
parent
d9767a368f
commit
586b741959
|
@ -1795,7 +1795,7 @@ static void patchReplacementInstruction(Instruction *I, Value *Repl) {
|
||||||
// In general, GVN unifies expressions over different control-flow
|
// In general, GVN unifies expressions over different control-flow
|
||||||
// regions, and so we need a conservative combination of the noalias
|
// regions, and so we need a conservative combination of the noalias
|
||||||
// scopes.
|
// scopes.
|
||||||
unsigned KnownIDs[] = {
|
static const unsigned KnownIDs[] = {
|
||||||
LLVMContext::MD_tbaa,
|
LLVMContext::MD_tbaa,
|
||||||
LLVMContext::MD_alias_scope,
|
LLVMContext::MD_alias_scope,
|
||||||
LLVMContext::MD_noalias,
|
LLVMContext::MD_noalias,
|
||||||
|
|
Loading…
Reference in New Issue