[llvm-branch-commits] [llvm] ada96fa - [LTO] Add test to ensure objc-arc-contract is executed.
Florian Hahn via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Jan 13 04:23:11 PST 2021
Author: Florian Hahn
Date: 2021-01-13T12:18:17Z
New Revision: ada96fa62179d2addd6c85a02381f1353fe7a2d1
URL: https://github.com/llvm/llvm-project/commit/ada96fa62179d2addd6c85a02381f1353fe7a2d1
DIFF: https://github.com/llvm/llvm-project/commit/ada96fa62179d2addd6c85a02381f1353fe7a2d1.diff
LOG: [LTO] Add test to ensure objc-arc-contract is executed.
This test adds additional test coverage for upcoming refactorings.
Added:
llvm/test/LTO/X86/objc-arc-contract.ll
Modified:
Removed:
################################################################################
diff --git a/llvm/test/LTO/X86/objc-arc-contract.ll b/llvm/test/LTO/X86/objc-arc-contract.ll
new file mode 100644
index 000000000000..689668503ee6
--- /dev/null
+++ b/llvm/test/LTO/X86/objc-arc-contract.ll
@@ -0,0 +1,13 @@
+; RUN: llvm-as < %s >%t.bc
+; RUN: llvm-lto -debug-pass=Arguments -exported-symbol=_f -o /dev/null %t.bc 2>&1 -disable-verify | FileCheck %s
+
+target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-apple-macosx10.10.0"
+
+; Make sure -objc-arc-contract is executed.
+; CHECK: Pass Arguments: {{.*}} -objc-arc-contract
+
+define void @f() {
+entry:
+ ret void
+}
More information about the llvm-branch-commits
mailing list