[InstCombine] Actually combine AA metadata when replacing one load with another

Fixes PR24083

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241955 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bjorn Steinbrink
2015-07-10 22:30:17 +00:00
parent bd884766bf
commit ca7473f5d0
2 changed files with 2 additions and 6 deletions

View File

@@ -762,8 +762,6 @@ Instruction *InstCombiner::visitLoadInst(LoadInst &LI) {
LLVMContext::MD_nonnull,
};
combineMetadata(NLI, &LI, KnownIDs);
if (AATags)
NLI->setAAMetadata(AATags);
};
return ReplaceInstUsesWith(