[all-commits] [llvm/llvm-project] 533b7c: [GlobalOpt] Don't replace the aliasee if it has ot...
DianQK via All-commits
all-commits at lists.llvm.org
Wed Apr 26 18:54:42 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 533b7c1f6c696817df332cc7c9acbe3b454eadf2
https://github.com/llvm/llvm-project/commit/533b7c1f6c696817df332cc7c9acbe3b454eadf2
Author: DianQK <dianqk at dianqk.net>
Date: 2023-04-27 (Thu, 27 Apr 2023)
Changed paths:
M llvm/lib/Transforms/IPO/GlobalOpt.cpp
A llvm/test/Transforms/GlobalOpt/X86/alias-used-with-asm.ll
M llvm/test/Transforms/GlobalOpt/alias-used-address-space.ll
M llvm/test/Transforms/GlobalOpt/alias-used.ll
M polly/test/Support/dumpfunction.ll
Log Message:
-----------
[GlobalOpt] Don't replace the aliasee if it has other references.
As long as aliasee has `@llvm.used` or `@llvm.compiler.used` references, we cannot do the related replace or delete operations. Even if it is a Local Linkage, we cannot infer if there is no other use for it, such as asm or other future added cases.
Reviewed By: nikic
Differential Revision: https://reviews.llvm.org/D145293
More information about the All-commits
mailing list