summaryrefslogtreecommitdiff
path: root/polly
diff options
context:
space:
mode:
authorDianQK <dianqk@dianqk.net>2023-04-27 08:10:15 +0800
committerDianQK <dianqk@dianqk.net>2023-04-27 09:53:47 +0800
commit533b7c1f6c696817df332cc7c9acbe3b454eadf2 (patch)
treeb2ef8330029141f275bd287d24f972b69b9ecea2 /polly
parent4c83674679365dd990fef5f834a07ad32798e7f2 (diff)
downloadllvm-533b7c1f6c696817df332cc7c9acbe3b454eadf2.tar.gz
[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
Diffstat (limited to 'polly')
-rw-r--r--polly/test/Support/dumpfunction.ll2
1 files changed, 0 insertions, 2 deletions
diff --git a/polly/test/Support/dumpfunction.ll b/polly/test/Support/dumpfunction.ll
index de7e802d98e5..863212b2ef7d 100644
--- a/polly/test/Support/dumpfunction.ll
+++ b/polly/test/Support/dumpfunction.ll
@@ -20,8 +20,6 @@
%unrelated_type = type { i32 }
-@callee_alias = dso_local unnamed_addr alias void(i32, ptr, i32), ptr @callee
-
define internal void @callee(i32 %n, ptr noalias nonnull %A, i32 %i) #0 {
entry:
br label %for