diff options
| author | Michael Kruse <llvm@meinersbur.de> | 2018-12-20 17:11:02 +0000 | 
|---|---|---|
| committer | Michael Kruse <llvm@meinersbur.de> | 2018-12-20 17:11:02 +0000 | 
| commit | 199427100bd090f7f5aa8615921813d7ab1c7f51 (patch) | |
| tree | 8a88153b3014fb254fdcd276c1672a62002e4b34 /llvm/lib/Transforms | |
| parent | 18b008b5771bf5085268aec2ade92c315081200f (diff) | |
| download | bcm5719-llvm-199427100bd090f7f5aa8615921813d7ab1c7f51.tar.gz bcm5719-llvm-199427100bd090f7f5aa8615921813d7ab1c7f51.zip | |
[InstCombine] Preserve access-group metadata.
Preserve llvm.access.group metadata when combining store instructions.
This was forgotten in r349725.
Fixes llvm.org/PR40117
llvm-svn: 349774
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp b/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp index b9b1e7b6e8a..651e338bf47 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp @@ -553,10 +553,10 @@ static StoreInst *combineStoreToNewValue(InstCombiner &IC, StoreInst &SI, Value      case LLVMContext::MD_noalias:      case LLVMContext::MD_nontemporal:      case LLVMContext::MD_mem_parallel_loop_access: +    case LLVMContext::MD_access_group:        // All of these directly apply.        NewStore->setMetadata(ID, N);        break; -      case LLVMContext::MD_invariant_load:      case LLVMContext::MD_nonnull:      case LLVMContext::MD_range: | 

