diff options
author | Tim Northover <tnorthover@apple.com> | 2015-07-14 21:14:58 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2015-07-14 21:14:58 +0000 |
commit | 586b7419597b0bfe385eaa59b7f54d6e27dc7a6c (patch) | |
tree | cfd25b49313b64f159fc2bc7a38fa438d8dd28c9 /llvm/lib | |
parent | d9767a368fb7d425bbc7bec6d02afb596c232c34 (diff) | |
download | bcm5719-llvm-586b7419597b0bfe385eaa59b7f54d6e27dc7a6c.tar.gz bcm5719-llvm-586b7419597b0bfe385eaa59b7f54d6e27dc7a6c.zip |
GVN: use a static array instead of regenerating it each time. NFC.
llvm-svn: 242202
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Scalar/GVN.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/GVN.cpp b/llvm/lib/Transforms/Scalar/GVN.cpp index b1a0db356a1..d1eba6e70e5 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, |